[net-config]: Fix build warning error 54/43954/2
authorManeesh Jain <maneesh.jain@samsung.com>
Wed, 15 Jul 2015 13:19:37 +0000 (18:49 +0530)
committerManeesh Jain <maneesh.jain@samsung.com>
Wed, 15 Jul 2015 13:21:18 +0000 (18:51 +0530)
Change-Id: I534c32834c1ce4b227abbd0820f08b6bee82abb7
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
include/neterror.h
packaging/net-config.spec
src/network-state.c [changed mode: 0644->0755]
src/signal-handler.c [changed mode: 0644->0755]
src/utils/util.c
src/wifi-power.c

index 7502bbfc6f1af44a509c07b05d51bd783bf319c0..067523389e59b2c747e0201f28de16d4c8cc5165 100755 (executable)
@@ -43,5 +43,7 @@ void netconfig_error_fail_get_sim_auth_wrong_data(GError **error);
 void netconfig_error_fail_get_sim_auth_delay(GError **error);
 void netconfig_error_invalid_parameter(GError **error);
 void netconfig_error_permission_denied(GError **error);
+void netconfig_error_wifi_load_inprogress(GError **error);
+
 
 #endif /* __NETCONFIG_ERROR_H__ */
index 080d78f3146c9b486190d03c0e2c00e0f1a68996..d03336415195a320163f480672703ce8b5e3a395 100644 (file)
@@ -1,6 +1,6 @@
 Name:       net-config
 Summary:    TIZEN Network Configuration Module
-Version:    0.1.90_34
+Version:    0.1.90_35
 Release:    1
 Group:      System/Network
 License:    Apache-2.0
old mode 100644 (file)
new mode 100755 (executable)
index b93c7c6..2b8ea2a
@@ -156,7 +156,6 @@ static struct netconfig_default_connection
 
 static void __netconfig_pop_3g_alert_syspoppup(void)
 {
-       int rv = 0;
        int wifi_ug_state = 0;
 
        vconf_get_int(VCONFKEY_WIFI_UG_RUN_STATE, &wifi_ug_state);
old mode 100644 (file)
new mode 100755 (executable)
index 4c2b5bc..c62457a
@@ -35,6 +35,7 @@
 #include "network-state.h"
 #include "neterror.h"
 #include "wifi.h"
+#include "wifi-power.h"
 
 #define SIGNAL_SCAN_DONE               "ScanDone"
 #define SIGNAL_BSS_ADDED               "BSSAdded"
index 16db8c89a4528c3759488464fdb3c6e45f8fff52..0bf23c4eb7c1a7bbbf8a35c1fd7d80212dd09388 100755 (executable)
@@ -179,7 +179,6 @@ static gboolean __netconfig_test_device_picker()
 
 static void __netconfig_pop_device_picker(void)
 {
-       int rv = 0;
        int wifi_ug_state = 0;
 
        vconf_get_int(VCONFKEY_WIFI_UG_RUN_STATE, &wifi_ug_state);
index 9ba4bdc3c15fde9fa53d2b0fce39018a4e179479..381870943984a9b1a426fb9fd079a3b4252af0d3 100755 (executable)
@@ -115,14 +115,15 @@ static gboolean __netconfig_wifi_disable_technology(void)
 static gboolean __netconfig_wifi_load_driver(void)
 {
        gboolean rv = FALSE;
-       const char *path = WLAN_DRIVER_SCRIPT;
-       char *const args[] = { "wlan.sh", "start", NULL };
-       char *const envs[] = { NULL };
 
        if (netconfig_emulator_is_emulated() == TRUE)
                return rv;
 
 #if defined EMBEDDED_TARGET
+       const char *path = WLAN_DRIVER_SCRIPT;
+       char *const args[] = { "wlan.sh", "start", NULL };
+       char *const envs[] = { NULL };
+
        rv = netconfig_execute_file(path, args, envs);
        if (rv != TRUE) {
                DBG("Failed to load wireless device driver");
@@ -137,14 +138,15 @@ static gboolean __netconfig_wifi_load_driver(void)
 gboolean netconfig_wifi_remove_driver(void)
 {
        gboolean rv = FALSE;
-       const char *path = WLAN_DRIVER_SCRIPT;
-       char *const args[] = { "wlan.sh", "stop", NULL };
-       char *const env[] = { NULL };
 
        if (netconfig_emulator_is_emulated() == TRUE)
                return rv;
 
 #if defined EMBEDDED_TARGET
+       const char *path = WLAN_DRIVER_SCRIPT;
+       char *const args[] = { "wlan.sh", "stop", NULL };
+       char *const env[] = { NULL };
+
        rv = netconfig_execute_file(path, args, env);
        if (rv != TRUE) {
                DBG("Failed to remove wireless device driver");