summaryrefslogtreecommitdiffstats
path: root/daemon/proto.c
diff options
context:
space:
mode:
authorRichard Jones <rjones@trick.home.annexia.org>2009-09-17 14:49:06 +0100
committerRichard Jones <rjones@trick.home.annexia.org>2009-09-17 15:31:22 +0100
commit5ccae24e06c52977f8b71d00c19f1100c1fa9c4c (patch)
tree1931c32148c072469b5214551f80a03ab12c1275 /daemon/proto.c
parent6c8a69c602643ae3102c263148a94559d6594381 (diff)
downloadlibguestfs-5ccae24e06c52977f8b71d00c19f1100c1fa9c4c.tar.gz
libguestfs-5ccae24e06c52977f8b71d00c19f1100c1fa9c4c.tar.xz
libguestfs-5ccae24e06c52977f8b71d00c19f1100c1fa9c4c.zip
'len' should be an unsigned 32 bit int.
This only happened to work by accident before because 'unsigned len' happens to be 32 bit on all platforms we support.
Diffstat (limited to 'daemon/proto.c')
-rw-r--r--daemon/proto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/proto.c b/daemon/proto.c
index d935ded5..431f219a 100644
--- a/daemon/proto.c
+++ b/daemon/proto.c
@@ -45,7 +45,7 @@ main_loop (int _sock)
XDR xdr;
char *buf;
char lenbuf[4];
- unsigned len;
+ uint32_t len;
struct guestfs_message_header hdr;
struct timeval start_t, end_t;
int64_t start_us, end_us, elapsed_us;