diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/open.c | 8 | ||||
-rw-r--r-- | lib/read.c | 4 | ||||
-rw-r--r-- | lib/write.c | 7 |
3 files changed, 11 insertions, 8 deletions
@@ -138,10 +138,10 @@ glibtop_open_l (glibtop *server, const char *program_name, sprintf (version, LIBGTOP_VERSION_STRING, LIBGTOP_VERSION, LIBGTOP_SERVER_VERSION, - sizeof (glibtop_command), - sizeof (glibtop_response), - sizeof (glibtop_union), - sizeof (glibtop_sysdeps)); + (guint) sizeof (glibtop_command), + (guint) sizeof (glibtop_response), + (guint) sizeof (glibtop_union), + (guint) sizeof (glibtop_sysdeps)); size = strlen (version) + 1; @@ -53,7 +53,7 @@ glibtop_read_l (glibtop *server, size_t size, void *buf) glibtop_init_r (&server, 0, 0); #ifdef DEBUG - fprintf (stderr, "LIBRARY: really reading %d bytes.\n", size); + fprintf (stderr, "LIBRARY: really reading %d bytes.\n", (int)size); #endif if (server->socket) { @@ -64,6 +64,6 @@ glibtop_read_l (glibtop *server, size_t size, void *buf) server, ngettext ("read %d byte", "read %d bytes", size), - size); + (int)size); } } diff --git a/lib/write.c b/lib/write.c index 17cb5093..2d301b3e 100644 --- a/lib/write.c +++ b/lib/write.c @@ -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); } |