From ba817212b78834ec5c8234e4d6178c9fd8ba9d26 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Mon, 23 Nov 2015 18:47:35 +0100 Subject: [PATCH 2/2] Fix warning: "pointer targets in passing argument 2 of '_dbus_unpack_uint32' differ in signedness [-Wpointer-sign]". Bug: https://bugs.freedesktop.org/show_bug.cgi?id=93069 --- dbus/dbus-marshal-basic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbus/dbus-marshal-basic.c b/dbus/dbus-marshal-basic.c index ba82785..c04ce17 100644 --- a/dbus/dbus-marshal-basic.c +++ b/dbus/dbus-marshal-basic.c @@ -296,7 +296,7 @@ set_string (DBusString *str, _dbus_assert (_DBUS_ALIGN_VALUE (pos, 4) == (unsigned) pos); old_len = _dbus_unpack_uint32 (byte_order, - _dbus_string_get_const_data_len (str, pos, 4)); + _dbus_string_get_const_udata_len (str, pos, 4)); new_len = _dbus_string_get_length (&dstr); @@ -468,7 +468,7 @@ _dbus_marshal_read_uint32 (const DBusString *str, _dbus_assert (pos + 4 <= _dbus_string_get_length (str)); return _dbus_unpack_uint32 (byte_order, - _dbus_string_get_const_data (str) + pos); + _dbus_string_get_const_udata (str) + pos); } /** -- 1.8.4.5