Fixed a bunch of signedness warnings.
2006-04-10 Benoît Dejean <benoit@placenet.org> * lib/open.c: (glibtop_open_l): * lib/read.c: (glibtop_read_l): * lib/write.c: (glibtop_write_l): Fixed a bunch of signedness warnings.
This commit is contained in:
committed by
Benoît Dejean
parent
12502c2673
commit
64fe5d591b
@@ -39,7 +39,7 @@ glibtop_write_l (glibtop *server, size_t size, void *buf)
|
||||
if (size == 0) return;
|
||||
|
||||
#ifdef DEBUG
|
||||
fprintf (stderr, "LIBRARY: really writing %d bytes.\n", size);
|
||||
fprintf (stderr, "LIBRARY: really writing %d bytes.\n", (int)size);
|
||||
#endif
|
||||
|
||||
if (server->socket) {
|
||||
@@ -49,5 +49,8 @@ glibtop_write_l (glibtop *server, size_t size, void *buf)
|
||||
}
|
||||
|
||||
if (ret < 0)
|
||||
glibtop_error_io_r (server, ngettext ("wrote %d byte", "wrote %d bytes", size), size);
|
||||
glibtop_error_io_r (server,
|
||||
ngettext("wrote %d byte",
|
||||
"wrote %d bytes", size),
|
||||
(int) size);
|
||||
}
|
||||
|
Reference in New Issue
Block a user