From: Richard W.M. Jones Date: Thu, 19 May 2011 13:44:02 +0000 (+0100) Subject: daemon: Make sysroot_len be size_t instead of int. X-Git-Tag: 1.11.9~11 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=4b91462bad010a0b214e808f94a916002be65b91;p=libguestfs.git daemon: Make sysroot_len be size_t instead of int. --- diff --git a/daemon/daemon.h b/daemon/daemon.h index 40a087d..77ee628 100644 --- a/daemon/daemon.h +++ b/daemon/daemon.h @@ -36,7 +36,7 @@ extern int verbose; extern int autosync_umount; extern const char *sysroot; -extern int sysroot_len; +extern size_t sysroot_len; extern char *sysroot_path (const char *path); diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c index ac8750c..448f3b4 100644 --- a/daemon/guestfsd.c +++ b/daemon/guestfsd.c @@ -103,7 +103,7 @@ winsock_init (void) /* Location to mount root device. */ const char *sysroot = "/sysroot"; /* No trailing slash. */ -int sysroot_len = 8; +size_t sysroot_len = 8; /* If set (the default), do 'umount-all' when performing autosync. */ int autosync_umount = 1;