From 64fe5d591bc697804ab1cd55ae18ec08ba3da934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Dejean?= Date: Mon, 10 Apr 2006 08:41:46 +0000 Subject: [PATCH] Fixed a bunch of signedness warnings. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2006-04-10 Benoît Dejean * lib/open.c: (glibtop_open_l): * lib/read.c: (glibtop_read_l): * lib/write.c: (glibtop_write_l): Fixed a bunch of signedness warnings. --- ChangeLog | 8 ++++++++ lib/open.c | 8 ++++---- lib/read.c | 4 ++-- lib/write.c | 7 +++++-- 4 files changed, 19 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5c3687e0..b802aecc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-04-10 Benoît Dejean + + * lib/open.c: (glibtop_open_l): + * lib/read.c: (glibtop_read_l): + * lib/write.c: (glibtop_write_l): + + Fixed a bunch of signedness warnings. + 2006-04-04 Julio M. Merino Vidal * libgtop-sysdeps.m4: diff --git a/lib/open.c b/lib/open.c index 645b9705..14034374 100644 --- a/lib/open.c +++ b/lib/open.c @@ -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; diff --git a/lib/read.c b/lib/read.c index e0efdbaf..b2920af4 100644 --- a/lib/read.c +++ b/lib/read.c @@ -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); }