From: Richard Jones Date: Thu, 17 Sep 2009 13:49:06 +0000 (+0100) Subject: 'len' should be an unsigned 32 bit int. X-Git-Tag: 1.0.71~17 X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=commitdiff_plain;h=5ccae24e06c52977f8b71d00c19f1100c1fa9c4c '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. --- diff --git a/daemon/proto.c b/daemon/proto.c index d935ded..431f219 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;