Fix compile error which is specific for GCC 6.2 64/105764/2 submit/tizen/20161220.012658
authorYu Jiung <jiung.yu@samsung.com>
Mon, 19 Dec 2016 11:11:25 +0000 (20:11 +0900)
committerYu Jiung <jiung.yu@samsung.com>
Tue, 20 Dec 2016 01:19:04 +0000 (10:19 +0900)
Change-Id: I3a698d42051c8736367a3e659cf71fd8a0d811f8
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
packaging/net-config.spec
src/wifi-config.c

index 2fc78021121c7aec94f550a09c11531e35126192..757375ec8b2313ddb99c19351b8d4db1033bca7e 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          net-config
 Summary:       TIZEN Network Configuration service
-Version:       1.1.96
+Version:       1.1.97
 Release:       2
 Group:         System/Network
 License:       Apache-2.0
index 9a910e8234f2f72517e8d8e8bd3810d96863d29d..cf243e9c59cbcbe47952f8497ee9b7619bc66aac 100755 (executable)
@@ -540,7 +540,6 @@ static gboolean _get_field(const gchar *config_id, const gchar *key, gchar **val
 static GSList *_get_list(void)
 {
        GSList *list = NULL;
-       struct dirent ent_struct;
        struct dirent *dp = NULL;
        DIR *dir;
 
@@ -550,7 +549,7 @@ static GSList *_get_list(void)
                return NULL;
        }
 
-       while ((readdir_r(dir, &ent_struct, &dp) == 0) && dp) {
+       while (dp = readdir(dir)) {
                if (g_strcmp0(dp->d_name, ".") == 0 || g_strcmp0(dp->d_name, "..") == 0 ||
                                strncmp(dp->d_name, WIFI_CONFIG_PREFIX, strlen(WIFI_CONFIG_PREFIX)) != 0) {
                        continue;