aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_mem_paging.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_mem_paging.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_mem_paging.c')
-rw-r--r--tools/libxc/xc_mem_paging.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxc/xc_mem_paging.c b/tools/libxc/xc_mem_paging.c
index 0c309b5e2f..a108a5c4cf 100644
--- a/tools/libxc/xc_mem_paging.c
+++ b/tools/libxc/xc_mem_paging.c
@@ -87,7 +87,7 @@ int xc_mem_paging_load(xc_interface *xch, domid_t domain_id,
buffer, NULL, gfn);
old_errno = errno;
- (void) munlock(buffer, XC_PAGE_SIZE);
+ munlock(buffer, XC_PAGE_SIZE);
errno = old_errno;
return rc;