Fixed build error on gcc62 26/123226/1 accepted/tizen/unified/20170406.054816 submit/tizen/20170405.061651
authorSeonah Moon <seonah1.moon@samsung.com>
Wed, 5 Apr 2017 04:19:18 +0000 (13:19 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Wed, 5 Apr 2017 04:19:34 +0000 (13:19 +0900)
readdir_r() is deprecated. It should be replaced with reddir().

Change-Id: I0ec9fd2ad60c39bb0585ef617b756b0996262cd4
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
packaging/net-config.spec
src/wifi-config.c

index f2588c8..5bfe946 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          net-config
 Summary:       TIZEN Network Configuration service
-Version:       1.1.105
+Version:       1.1.106
 Release:       2
 Group:         System/Network
 License:       Apache-2.0
index 1f479a3..41297d5 100755 (executable)
@@ -543,7 +543,6 @@ static gboolean _get_field(const gchar *config_id, const gchar *key, gchar **val
 static GSList *_get_list(void)
 {
        GSList *list = NULL;
-       struct dirent de;
        struct dirent *dp = NULL;
        DIR *dir;
 
@@ -553,7 +552,7 @@ static GSList *_get_list(void)
                return NULL;
        }
 
-       while ((readdir_r(dir, &de, &dp) == 0) && (dp != NULL)) {
+       while ((readdir(dir) == 0) && (dp != NULL)) {
                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;