Merge remote-tracking branch 'origin/tizen_3.0' into tizen
[platform/core/uifw/tts.git] / server / ttsd_server.c
index 1e016e5..8820904 100644 (file)
@@ -557,9 +557,7 @@ static Eina_Bool __quit_ecore_loop(void *data)
 static void __read_proc()
 {
        DIR *dp = NULL;
-       struct dirent entry;
        struct dirent *dirp = NULL;
-       int ret = -1;
        int tmp;
 
        GList *iter = NULL;
@@ -577,11 +575,7 @@ static void __read_proc()
                SLOG(LOG_ERROR, tts_tag(), "[ERROR] Fail to open proc");
        } else {
                do {
-                       ret = readdir_r(dp, &entry, &dirp);
-                       if (0 != ret) {
-                               SLOG(LOG_ERROR, tts_tag(), "[ERROR] Fail to readdir");
-                               break;
-                       }
+                       dirp = readdir(dp);
 
                        if (NULL != dirp) {
                                tmp = atoi(dirp->d_name);