Change from readdir_r( ) to readdir( ). 10/121910/2
authorjinwang.an <jinwang.an@samsung.com>
Wed, 29 Mar 2017 10:11:54 +0000 (19:11 +0900)
committerjinwang.an <jinwang.an@samsung.com>
Thu, 30 Mar 2017 06:39:05 +0000 (15:39 +0900)
Change-Id: Ic8eeb0f18d69b80559e84026b9c9a31b494ce2b7
Signed-off-by: jinwang.an <jinwang.an@samsung.com>
src/setting-connection.c
src/setting-sound.c

index 03f2cbfdd366633d8926d55e4ff40d965e0f578f..0cf3801ba82e688bea7cd2f8cda4067de8e4a0e4 100644 (file)
@@ -586,7 +586,6 @@ Evas_Object *_create_connection_list(void *data)
        }
        elm_genlist_item_class_free(text_icon);
        elm_genlist_item_class_free(text2_icon);
-       elm_genlist_item_class_free(itc_1text);
        elm_genlist_item_class_free(itc);
 
        Elm_Genlist_Item_Class *padding = elm_genlist_item_class_new();
index 9982b2c29939453dac209562fb694fcf0e3d1d22..19a87dae9a2bb2ab9c57b38973225e525e01aec0 100644 (file)
@@ -223,7 +223,6 @@ void _stop_player()
 static void get_sound_file_list(char *dir, int type)
 {
        DIR *dp;
-       struct dirent entry;
        struct dirent *result = NULL;
        char *cur_ring_path = NULL;
 
@@ -246,7 +245,7 @@ static void get_sound_file_list(char *dir, int type)
                notification_count = 0;
        }
 
-       while (!readdir_r(dp, &entry, &result) && result &&
+       while (((result = readdir(dp)) != NULL) &&
                   ringtone_count < RINGTONE_MAX_COUNT &&
                   notification_count < RINGTONE_MAX_COUNT
                  ) {