aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_linux_osdep.c
diff options
context:
space:
mode:
authorOlaf Hering <olaf@aepfle.de>2012-01-31 11:33:35 +0000
committerOlaf Hering <olaf@aepfle.de>2012-01-31 11:33:35 +0000
commitb9933931b573a01d8fd4525a185c7fa858c44461 (patch)
treed1e000d2912caf57db669e76dc52596fd6999e98 /tools/libxc/xc_linux_osdep.c
parente47ceecc301c3d1123aaf2c6d95f214a6dda4e81 (diff)
downloadxen-b9933931b573a01d8fd4525a185c7fa858c44461.tar.gz
xen-b9933931b573a01d8fd4525a185c7fa858c44461.tar.bz2
xen-b9933931b573a01d8fd4525a185c7fa858c44461.zip
mini-os: convert mlock macros to C functions
mlock and munlock are implemented as macros in mini-os. Their usage requires casting in common code. Convert them to C syntax and provide an empty dummy function. Remove the now unneeded (void) cast from two munlock calls. Signed-off-by: Olaf Hering <olaf@aepfle.de>
Diffstat (limited to 'tools/libxc/xc_linux_osdep.c')
-rw-r--r--tools/libxc/xc_linux_osdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxc/xc_linux_osdep.c b/tools/libxc/xc_linux_osdep.c
index 02df9c5ba0..4ee970d9c0 100644
--- a/tools/libxc/xc_linux_osdep.c
+++ b/tools/libxc/xc_linux_osdep.c
@@ -106,7 +106,7 @@ static void *linux_privcmd_alloc_hypercall_buffer(xc_interface *xch, xc_osdep_ha
static void linux_privcmd_free_hypercall_buffer(xc_interface *xch, xc_osdep_handle h, void *ptr, int npages)
{
- (void) munlock(ptr, npages * XC_PAGE_SIZE);
+ munlock(ptr, npages * XC_PAGE_SIZE);
free(ptr);
}