readdir_r() is deprecated. It should be replaced with reddir().
Change-Id: I0ec9fd2ad60c39bb0585ef617b756b0996262cd4
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
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
static GSList *_get_list(void)
{
GSList *list = NULL;
- struct dirent de;
struct dirent *dp = NULL;
DIR *dir;
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;