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:
Benoît Dejean
2006-04-10 08:41:46 +00:00
committed by Benoît Dejean
parent 12502c2673
commit 64fe5d591b
4 changed files with 19 additions and 8 deletions

View File

@@ -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);
}