gpointer user_data)
{
__WDC_LOG_FUNC_START__;
- char *get_str = NULL;
+ const char *get_str = NULL;
GError* error = NULL;
GVariant *reply = NULL;
const gchar *peer_mac_address = NULL;
return;
}
- g_variant_get(reply, "(i&s)", ret, &get_str);
+ g_variant_get(reply, "(i&s)", &ret, &get_str);
g_variant_unref(reply);
WDC_LOGD("Interface Name = [%s]", get_str);
CHECK_FEATURE_SUPPORTED(WIFIDIRECT_FEATURE);
wifi_direct_state_e status = 0;
- char *get_str = NULL;
+ const char *get_str = NULL;
GError* error = NULL;
GVariant *reply = NULL;
int ret = WIFI_DIRECT_ERROR_NONE;
if (ret != WIFI_DIRECT_ERROR_NONE)
return ret;
- g_variant_get(reply, "(i&s)", ret, &get_str);
+ g_variant_get(reply, "(i&s)", &ret, &get_str);
if (get_str != NULL)
*name = strdup(get_str);
g_variant_unref(reply);
if (ret != WIFI_DIRECT_ERROR_NONE)
return ret;
- g_variant_get(reply, "(i&s)", ret, &str);
+ g_variant_get(reply, "(i&s)", &ret, &str);
if (str != NULL)
*ip_address = strdup(str);
g_variant_unref(reply);
if (ret != WIFI_DIRECT_ERROR_NONE)
return ret;
- g_variant_get(reply, "(i&s)", ret, &get_str);
+ g_variant_get(reply, "(i&s)", &ret, &get_str);
if (get_str != NULL)
*subnet_mask = strdup(get_str);
g_variant_unref(reply);
wifi_direct_state_e status = 0;
GError* error = NULL;
GVariant *reply = NULL;
- char *get_str = NULL;
+ const char *get_str = NULL;
int ret = WIFI_DIRECT_ERROR_NONE;
if (g_client_info.is_registered == false) {
if (ret != WIFI_DIRECT_ERROR_NONE)
return ret;
- g_variant_get(reply, "(i&s)", ret, &get_str);
+ g_variant_get(reply, "(i&s)", &ret, &get_str);
if (get_str != NULL)
*gateway_address = strdup(get_str);
g_variant_unref(reply);