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:
ce3a9c5
)
Signed/unsigned warning on 64 bit.
author
Richard Jones
<rjones@redhat.com>
Wed, 31 Mar 2010 12:19:34 +0000
(13:19 +0100)
committer
Richard Jones
<rjones@redhat.com>
Wed, 7 Apr 2010 11:05:46 +0000
(12:05 +0100)
daemon/zero.c
patch
|
blob
|
history
diff --git
a/daemon/zero.c
b/daemon/zero.c
index
6e62e15
..
df4ebd6
100644
(file)
--- a/
daemon/zero.c
+++ b/
daemon/zero.c
@@
-74,7
+74,7
@@
do_zero_device (const char *device)
memset (buf, 0, sizeof buf);
while (size > 0) {
- size_t n =
size > sizeof buf ? sizeof buf :
size;
+ size_t n =
(size_t) size > sizeof buf ? sizeof buf : (size_t)
size;
ssize_t r = write (fd, buf, n);
if (r == -1) {
reply_with_perror ("write: %s (with %" PRId64 " bytes left to write)",