ia64/xen-unstable

changeset 17705:7325ea8445cb

libxc: drop double un?lock_pages definition to fix static linking

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu May 22 15:09:49 2008 +0100 (2008-05-22)
parents e7eb66a4c5f7
children 2e6a51378451
files tools/libxc/xg_private.c
line diff
     1.1 --- a/tools/libxc/xg_private.c	Thu May 22 15:09:08 2008 +0100
     1.2 +++ b/tools/libxc/xg_private.c	Thu May 22 15:09:49 2008 +0100
     1.3 @@ -12,22 +12,6 @@
     1.4  
     1.5  #include "xg_private.h"
     1.6  
     1.7 -int lock_pages(void *addr, size_t len)
     1.8 -{
     1.9 -    int e = 0;
    1.10 -#ifndef __sun__
    1.11 -    e = mlock(addr, len);
    1.12 -#endif
    1.13 -    return (e);
    1.14 -}
    1.15 -
    1.16 -void unlock_pages(void *addr, size_t len)
    1.17 -{
    1.18 -#ifndef __sun__
    1.19 -    safe_munlock(addr, len);
    1.20 -#endif
    1.21 -}
    1.22 -
    1.23  char *xc_read_image(const char *filename, unsigned long *size)
    1.24  {
    1.25      int kernel_fd = -1;