From 07e3653922513f4309528e299b9ee569c0fe1d28 Mon Sep 17 00:00:00 2001 From: Samuel Tan Date: Thu, 5 Nov 2015 11:08:22 -0800 Subject: [PATCH] dbus: Do not use pointer arithmetic with a void pointer This failed to compile on x86 gcc due to pointer arithmetic on a void pointer. Signed-off-by: Samuel Tan --- wpa_supplicant/dbus/dbus_new_handlers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wpa_supplicant/dbus/dbus_new_handlers.c b/wpa_supplicant/dbus/dbus_new_handlers.c index a357dcb26..fbfcdc9a9 100644 --- a/wpa_supplicant/dbus/dbus_new_handlers.c +++ b/wpa_supplicant/dbus/dbus_new_handlers.c @@ -435,7 +435,8 @@ dbus_bool_t wpas_dbus_simple_array_property_getter(DBusMessageIter *iter, for (i = 0; i < array_len; i++) { if (!dbus_message_iter_append_basic(&array_iter, type, - array + i * element_size)) { + (const char *) array + + i * element_size)) { dbus_set_error(error, DBUS_ERROR_FAILED, "%s: failed to construct message 2.5", __func__);