diff options
| author | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2011-06-22 19:30:06 +0000 |
|---|---|---|
| committer | vboxsync <vboxsync@cfe28804-0f27-0410-a406-dd0f0b0b656f> | 2011-06-22 19:30:06 +0000 |
| commit | f8d6ad41c03d00dd90283922ef13ae1d753b95f5 (patch) | |
| tree | f8e28a1ec1d735b6fc60b31d6bdf040854717dc4 /src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp | |
| parent | cf0dbe74585565a190ffde2ee48bb62838045e3c (diff) | |
| download | VirtualBox-svn-f8d6ad41c03d00dd90283922ef13ae1d753b95f5.tar.gz | |
*: RTFILE becomes a pointer, RTFileOpen++ expands it's flags paramter from uint32_t to uint64_t.
git-svn-id: https://www.virtualbox.org/svn/vbox/trunk@37596 cfe28804-0f27-0410-a406-dd0f0b0b656f
Diffstat (limited to 'src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp')
| -rw-r--r-- | src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp b/src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp index 18ac03dbe15..90cb53c62a7 100644 --- a/src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp +++ b/src/VBox/HostDrivers/Support/linux/SUPLib-linux.cpp @@ -78,7 +78,7 @@ int suplibOsInit(PSUPLIBDATA pThis, bool fPreInited) */ if (fPreInited) return VINF_SUCCESS; - Assert(pThis->hDevice == NIL_RTFILE); + Assert(pThis->hDevice == (intptr_t)NIL_RTFILE); /* * Check if madvise works. @@ -144,11 +144,11 @@ int suplibOsTerm(PSUPLIBDATA pThis) /* * Close the device if it's actually open. */ - if (pThis->hDevice != NIL_RTFILE) + if (pThis->hDevice != (intptr_t)NIL_RTFILE) { if (close(pThis->hDevice)) AssertFailed(); - pThis->hDevice = NIL_RTFILE; + pThis->hDevice = (intptr_t)NIL_RTFILE; } return 0; @@ -171,7 +171,7 @@ int suplibOsUninstall(void) int suplibOsIOCtl(PSUPLIBDATA pThis, uintptr_t uFunction, void *pvReq, size_t cbReq) { - AssertMsg(pThis->hDevice != NIL_RTFILE, ("SUPLIB not initiated successfully!\n")); + AssertMsg(pThis->hDevice != (intptr_t)NIL_RTFILE, ("SUPLIB not initiated successfully!\n")); /* * Issue device iocontrol. |
