summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-05-19 14:44:02 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-05-19 14:44:13 +0100
commit4b91462bad010a0b214e808f94a916002be65b91 (patch)
treede8f22b73a4a51e40f40c2e6a725000209c280e4 /daemon
parent7ac2c210dde062a0870431b60d0693c55e2cf17c (diff)
downloadlibguestfs-4b91462bad010a0b214e808f94a916002be65b91.tar.gz
libguestfs-4b91462bad010a0b214e808f94a916002be65b91.tar.xz
libguestfs-4b91462bad010a0b214e808f94a916002be65b91.zip
daemon: Make sysroot_len be size_t instead of int.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/daemon.h2
-rw-r--r--daemon/guestfsd.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/daemon/daemon.h b/daemon/daemon.h
index 40a087de..77ee6281 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 ac8750c1..448f3b45 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;