git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c8a69c
)
'len' should be an unsigned 32 bit int.
author
Richard Jones
<rjones@trick.home.annexia.org>
Thu, 17 Sep 2009 13:49:06 +0000
(14:49 +0100)
committer
Richard Jones
<rjones@trick.home.annexia.org>
Thu, 17 Sep 2009 14:31:22 +0000
(15:31 +0100)
This only happened to work by accident before because 'unsigned len'
happens to be 32 bit on all platforms we support.
daemon/proto.c
patch
|
blob
|
history
diff --git
a/daemon/proto.c
b/daemon/proto.c
index
d935ded
..
431f219
100644
(file)
--- a/
daemon/proto.c
+++ b/
daemon/proto.c
@@
-45,7
+45,7
@@
main_loop (int _sock)
XDR xdr;
char *buf;
char lenbuf[4];
- u
nsigned
len;
+ u
int32_t
len;
struct guestfs_message_header hdr;
struct timeval start_t, end_t;
int64_t start_us, end_us, elapsed_us;