aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/dbus/dbus_new_handlers.c
diff options
context:
space:
mode:
authorSamuel Tan <samueltan@google.com>2015-11-05 19:08:22 (GMT)
committerJouni Malinen <j@w1.fi>2015-11-15 17:34:51 (GMT)
commit07e3653922513f4309528e299b9ee569c0fe1d28 (patch)
tree86784d538d357209ab37146787712c8e9f4fc6fe /wpa_supplicant/dbus/dbus_new_handlers.c
parent3b4971913069c92a2d03b2a4be6ef42311fbd908 (diff)
downloadhostap-07e3653922513f4309528e299b9ee569c0fe1d28.zip
hostap-07e3653922513f4309528e299b9ee569c0fe1d28.tar.gz
hostap-07e3653922513f4309528e299b9ee569c0fe1d28.tar.bz2
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 <samueltan@google.com>
Diffstat (limited to 'wpa_supplicant/dbus/dbus_new_handlers.c')
-rw-r--r--wpa_supplicant/dbus/dbus_new_handlers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_supplicant/dbus/dbus_new_handlers.c b/wpa_supplicant/dbus/dbus_new_handlers.c
index a357dcb..fbfcdc9 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__);