diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2009-11-10 16:48:21 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2009-11-10 16:48:21 +0200 |
commit | ea20a1ad03758c58a4c24530808d622f1cab3f87 (patch) | |
tree | 5ea6ed0e0e71ed0f7c2b32476f97ff515ad58611 /wpa_supplicant/ctrl_iface_dbus_new_helpers.c | |
parent | 69856fadf77e680d01cac09da37e6bb3643ca427 (diff) | |
download | external_wpa_supplicant_8_ti-ea20a1ad03758c58a4c24530808d622f1cab3f87.zip external_wpa_supplicant_8_ti-ea20a1ad03758c58a4c24530808d622f1cab3f87.tar.gz external_wpa_supplicant_8_ti-ea20a1ad03758c58a4c24530808d622f1cab3f87.tar.bz2 |
dbus: Remove unneeded typecast
This was triggering some gcc versions to warn about strict aliasing.
Since the typecast is not really needed here, the cleanest way to get
rid of the warnings is to just use the correct type for the local
variable.
Diffstat (limited to 'wpa_supplicant/ctrl_iface_dbus_new_helpers.c')
-rw-r--r-- | wpa_supplicant/ctrl_iface_dbus_new_helpers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wpa_supplicant/ctrl_iface_dbus_new_helpers.c b/wpa_supplicant/ctrl_iface_dbus_new_helpers.c index 9c5e28b..78db812 100644 --- a/wpa_supplicant/ctrl_iface_dbus_new_helpers.c +++ b/wpa_supplicant/ctrl_iface_dbus_new_helpers.c @@ -594,7 +594,7 @@ static DBusMessage * introspect(DBusMessage *message, struct wpa_dbus_signal_desc *signal_dsc; struct wpa_dbus_method_desc *method_dsc; struct wpa_dbus_property_desc *property_dsc; - char *intro_str; + xmlChar *intro_str; char **children; int i, s; @@ -798,7 +798,7 @@ static DBusMessage * introspect(DBusMessage *message, dbus_free_string_array(children); - xmlDocDumpFormatMemory(doc, (xmlChar **) &intro_str, &s, 1); + xmlDocDumpFormatMemory(doc, &intro_str, &s, 1); xmlFreeDoc(doc); |