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
@@ -1,3 +1,11 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2006-04-04 Julio M. Merino Vidal <jmmv@NetBSD.org>
|
2006-04-04 Julio M. Merino Vidal <jmmv@NetBSD.org>
|
||||||
|
|
||||||
* libgtop-sysdeps.m4:
|
* libgtop-sysdeps.m4:
|
||||||
|
@@ -138,10 +138,10 @@ glibtop_open_l (glibtop *server, const char *program_name,
|
|||||||
|
|
||||||
sprintf (version, LIBGTOP_VERSION_STRING,
|
sprintf (version, LIBGTOP_VERSION_STRING,
|
||||||
LIBGTOP_VERSION, LIBGTOP_SERVER_VERSION,
|
LIBGTOP_VERSION, LIBGTOP_SERVER_VERSION,
|
||||||
sizeof (glibtop_command),
|
(guint) sizeof (glibtop_command),
|
||||||
sizeof (glibtop_response),
|
(guint) sizeof (glibtop_response),
|
||||||
sizeof (glibtop_union),
|
(guint) sizeof (glibtop_union),
|
||||||
sizeof (glibtop_sysdeps));
|
(guint) sizeof (glibtop_sysdeps));
|
||||||
|
|
||||||
size = strlen (version) + 1;
|
size = strlen (version) + 1;
|
||||||
|
|
||||||
|
@@ -53,7 +53,7 @@ glibtop_read_l (glibtop *server, size_t size, void *buf)
|
|||||||
glibtop_init_r (&server, 0, 0);
|
glibtop_init_r (&server, 0, 0);
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
fprintf (stderr, "LIBRARY: really reading %d bytes.\n", size);
|
fprintf (stderr, "LIBRARY: really reading %d bytes.\n", (int)size);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (server->socket) {
|
if (server->socket) {
|
||||||
@@ -64,6 +64,6 @@ glibtop_read_l (glibtop *server, size_t size, void *buf)
|
|||||||
server,
|
server,
|
||||||
ngettext ("read %d byte",
|
ngettext ("read %d byte",
|
||||||
"read %d bytes", size),
|
"read %d bytes", size),
|
||||||
size);
|
(int)size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -39,7 +39,7 @@ glibtop_write_l (glibtop *server, size_t size, void *buf)
|
|||||||
if (size == 0) return;
|
if (size == 0) return;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
fprintf (stderr, "LIBRARY: really writing %d bytes.\n", size);
|
fprintf (stderr, "LIBRARY: really writing %d bytes.\n", (int)size);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (server->socket) {
|
if (server->socket) {
|
||||||
@@ -49,5 +49,8 @@ glibtop_write_l (glibtop *server, size_t size, void *buf)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ret < 0)
|
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