summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2015-03-03 21:26:31 +0100
committerRalf Habacker <ralf.habacker@freenet.de>2015-03-04 12:18:42 +0100
commitd0fe556af122f25263204d13e0010e81fb1bc5a0 (patch)
treee4e2a98baad3fd26f83982d3d9a588f460c372e4 /tools
parent073aa59f8c9011d58b95c8b3ef642b2b9c84eea6 (diff)
downloaddbus-d0fe556af122f25263204d13e0010e81fb1bc5a0.tar.gz
dbus-d0fe556af122f25263204d13e0010e81fb1bc5a0.tar.bz2
dbus-d0fe556af122f25263204d13e0010e81fb1bc5a0.zip
Trivial -Wsign-compare fixes.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=17289 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/dbus-print-message.c2
-rw-r--r--tools/dbus-spam.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/dbus-print-message.c b/tools/dbus-print-message.c
index 4a2a9c84..bd0817c0 100644
--- a/tools/dbus-print-message.c
+++ b/tools/dbus-print-message.c
@@ -68,7 +68,7 @@ indent (int depth)
static void
print_hex (const unsigned char *bytes,
- int len,
+ unsigned int len,
int depth)
{
unsigned int i, columns;
diff --git a/tools/dbus-spam.c b/tools/dbus-spam.c
index ce918754..e708ea2d 100644
--- a/tools/dbus-spam.c
+++ b/tools/dbus-spam.c
@@ -155,9 +155,9 @@ dbus_test_tool_spam (int argc, char **argv)
int i;
int count = 1;
int sent = 0;
- int sent_in_this_conn = 0;
+ unsigned int sent_in_this_conn = 0;
int received = 0;
- int received_before_this_conn = 0;
+ unsigned int received_before_this_conn = 0;
int queue_len = 1;
const char *payload = NULL;
char *payload_buf = NULL;