gsupplicant: fix return value of g_supplicant_interface_get_data()
authorKalle Valo <kalle.valo@canonical.com>
Mon, 27 Sep 2010 21:44:21 +0000 (00:44 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 27 Sep 2010 22:06:34 +0000 (00:06 +0200)
g_supplicant_interface_get_data() was returning a const void pointer even
though the setter took a non-const pointer. Change get_data() to return
non-const as well.

gsupplicant/gsupplicant.h
gsupplicant/supplicant.c

index c408c6f..c6ecf78 100644 (file)
@@ -144,7 +144,7 @@ int g_supplicant_interface_disconnect(GSupplicantInterface *interface,
 
 void g_supplicant_interface_set_data(GSupplicantInterface *interface,
                                                                void *data);
-const void *g_supplicant_interface_get_data(GSupplicantInterface *interface);
+void *g_supplicant_interface_get_data(GSupplicantInterface *interface);
 const char *g_supplicant_interface_get_ifname(GSupplicantInterface *interface);
 const char *g_supplicant_interface_get_driver(GSupplicantInterface *interface);
 GSupplicantState g_supplicant_interface_get_state(GSupplicantInterface *interface);
index f23ec47..2670c94 100644 (file)
@@ -608,7 +608,7 @@ void g_supplicant_interface_set_data(GSupplicantInterface *interface,
        interface->data = data;
 }
 
-const void *g_supplicant_interface_get_data(GSupplicantInterface *interface)
+void *g_supplicant_interface_get_data(GSupplicantInterface *interface)
 {
        if (interface == NULL)
                return NULL;