From: Yu Jiung Date: Mon, 19 Dec 2016 11:11:25 +0000 (+0900) Subject: Fix compile error which is specific for GCC 6.2 X-Git-Tag: submit/tizen/20161220.012658^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c464c2fbfc7a28dd44a0ae6ff7f1732c7b7d3f01;p=platform%2Fcore%2Fconnectivity%2Fnet-config.git Fix compile error which is specific for GCC 6.2 Change-Id: I3a698d42051c8736367a3e659cf71fd8a0d811f8 Signed-off-by: Yu jiung --- diff --git a/packaging/net-config.spec b/packaging/net-config.spec index 2fc7802..757375e 100755 --- a/packaging/net-config.spec +++ b/packaging/net-config.spec @@ -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 diff --git a/src/wifi-config.c b/src/wifi-config.c index 9a910e8..cf243e9 100755 --- a/src/wifi-config.c +++ b/src/wifi-config.c @@ -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;