From: hyunuk.tak Date: Thu, 26 Sep 2019 05:43:05 +0000 (+0900) Subject: Fix to appropriate variable for default connection X-Git-Tag: accepted/tizen/5.5/unified/20191031.024804^0 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fconnectivity%2Fstc-manager.git;a=commitdiff_plain;h=f24d823df9518db56e51f8c89bf03df673a1e316 Fix to appropriate variable for default connection Change-Id: I43a8a7aca0c1fb4f62b3c41dc58ef40359bbeabf Signed-off-by: hyunuk.tak --- diff --git a/plugin/monitor/stc-plugin-monitor-connection.c b/plugin/monitor/stc-plugin-monitor-connection.c index 1988a43..a305002 100755 --- a/plugin/monitor/stc-plugin-monitor-connection.c +++ b/plugin/monitor/stc-plugin-monitor-connection.c @@ -609,7 +609,7 @@ static void __vconf_key_callback(keynode_t *node, void *user_data) /* add monitoring for tethering if active found */ if (g_default_connection->tether_state == TRUE && g_default_connection->tether_iface.ifname) { __print_tether_connection_info(); - stc_monitor_update_by_connection(&g_default_connection); + stc_monitor_update_by_connection(g_default_connection); stc_plugin_firewall_update(); STC_LOGI("Data monitoring started for tethering iface !"); return; @@ -617,7 +617,7 @@ static void __vconf_key_callback(keynode_t *node, void *user_data) /* remove monitoring for tethering if in-active found */ if (g_default_connection->tether_state == FALSE && g_default_connection->tether_iface.ifname) { - stc_monitor_update_by_connection(&g_default_connection); + stc_monitor_update_by_connection(g_default_connection); g_free(g_default_connection->tether_iface.ifname); g_default_connection->tether_iface.ifname = NULL; g_default_connection->tether_iface.type = STC_IFACE_UNKNOWN;