]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
dbus: Remove unneeded typecast
authorJouni Malinen <jouni.malinen@atheros.com>
Tue, 10 Nov 2009 14:48:21 +0000 (16:48 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 10 Nov 2009 14:48:21 +0000 (16:48 +0200)
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.

wpa_supplicant/ctrl_iface_dbus_new_helpers.c

index 9c5e28b670be2306a3c25a9c342b7433fc496e19..78db8127bea5f1c36944b492f9e513966b58a1be 100644 (file)
@@ -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);