From: Kalle Valo Date: Mon, 27 Sep 2010 21:44:21 +0000 (+0300) Subject: gsupplicant: fix return value of g_supplicant_interface_get_data() X-Git-Tag: 0.62~17 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fconnman.git;a=commitdiff_plain;h=01a3b20535f4eb48ee08d37e312e4a69efec005a gsupplicant: fix return value of g_supplicant_interface_get_data() 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. --- diff --git a/gsupplicant/gsupplicant.h b/gsupplicant/gsupplicant.h index c408c6f..c6ecf78 100644 --- a/gsupplicant/gsupplicant.h +++ b/gsupplicant/gsupplicant.h @@ -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); diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c index f23ec47..2670c94 100644 --- a/gsupplicant/supplicant.c +++ b/gsupplicant/supplicant.c @@ -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;