Fix warning: "pointer targets in passing argument 1 of '_dbus_verbose_bytes' differ...
authorRalf Habacker <ralf.habacker@freenet.de>
Sun, 22 Nov 2015 19:56:57 +0000 (20:56 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Mon, 23 Nov 2015 16:13:40 +0000 (17:13 +0100)
Bug: https://bugs.freedesktop.org/attachment.cgi?id=93069
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
dbus/dbus-marshal-basic.c

index 6194071..bd4f968 100644 (file)
@@ -1386,7 +1386,7 @@ _dbus_verbose_bytes_of_string (const DBusString    *str,
 
   d = _dbus_string_get_const_data_len (str, start, len);
 
-  _dbus_verbose_bytes (d, len, start);
+  _dbus_verbose_bytes ((const unsigned char *) d, len, start);
 }
 
 static int
@@ -1588,9 +1588,9 @@ swap_test_array (void *array,
         _dbus_verbose_bytes_of_string (&str, dump_pos,                                  \
                                       _dbus_string_get_length (&str) - dump_pos);       \
         _dbus_verbose ("LITERAL DATA\n");                                               \
-        _dbus_verbose_bytes ((char*)literal, sizeof (literal), 0);                      \
+        _dbus_verbose_bytes ((const unsigned char *) literal, sizeof (literal), 0);                      \
         _dbus_verbose ("READ DATA\n");                                                  \
-        _dbus_verbose_bytes ((char*)v_ARRAY_##typename, sizeof (literal), 0);           \
+        _dbus_verbose_bytes ((const unsigned char *) v_ARRAY_##typename, sizeof (literal), 0);           \
         _dbus_assert_not_reached ("demarshaled wrong fixed array value");               \
       }                                                                                 \
   } while (0)