From 506e9463eb629550681f985b25951337a9f2b4db Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Sun, 22 Nov 2015 16:57:16 +0100 Subject: [PATCH] Fix several -Wpointer-sign warnings in test_hex_roundtrip() and related types. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=93069 --- dbus/dbus-string-util.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dbus/dbus-string-util.c b/dbus/dbus-string-util.c index 3babc05..1657ace 100644 --- a/dbus/dbus-string-util.c +++ b/dbus/dbus-string-util.c @@ -120,8 +120,8 @@ _dbus_string_find_byte_backward (const DBusString *str, #include static void -test_hex_roundtrip (const unsigned char *data, - int len) +test_hex_roundtrip (const char *data, + int len) { DBusString orig; DBusString encoded; @@ -170,8 +170,8 @@ test_hex_roundtrip (const unsigned char *data, _dbus_string_free (&decoded); } -typedef void (* TestRoundtripFunc) (const unsigned char *data, - int len); +typedef void (* TestRoundtripFunc) (const char *data, + int len); static void test_roundtrips (TestRoundtripFunc func) { @@ -194,7 +194,7 @@ test_roundtrips (TestRoundtripFunc func) (* func) ("1234", 5); (* func) ("12345", 6); { - unsigned char buf[512]; + char buf[512]; int i; i = 0; -- 1.8.4.5