summaryrefslogtreecommitdiff
path: root/src/lib/ecore_file
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-10-31 09:13:36 -0400
committerChris Michael <cp.michael@samsung.com>2014-11-03 08:13:32 -0500
commitff2f1e086a9af8fb7407690640cb348dbf8d6a76 (patch)
tree12d4c50f91ac02e21128fed15d07ef0906f6d016 /src/lib/ecore_file
parentd022ca06d1ad5b4a442313dfd976b3c497c2fe69 (diff)
ecore-file: Fix formatting.
Summary: No functional changes, just formatting Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_file')
-rw-r--r--src/lib/ecore_file/ecore_file_monitor_poll.c34
1 files changed, 18 insertions, 16 deletions
diff --git a/src/lib/ecore_file/ecore_file_monitor_poll.c b/src/lib/ecore_file/ecore_file_monitor_poll.c
index 03ac117087..088787e3e9 100644
--- a/src/lib/ecore_file/ecore_file_monitor_poll.c
+++ b/src/lib/ecore_file/ecore_file_monitor_poll.c
@@ -62,10 +62,10 @@ ecore_file_monitor_backend_shutdown(void)
62 62
63Ecore_File_Monitor * 63Ecore_File_Monitor *
64ecore_file_monitor_backend_add(const char *path, 64ecore_file_monitor_backend_add(const char *path,
65 void (*func) (void *data, Ecore_File_Monitor *em, 65 void (*func) (void *data, Ecore_File_Monitor *em,
66 Ecore_File_Event event, 66 Ecore_File_Event event,
67 const char *path), 67 const char *path),
68 void *data) 68 void *data)
69{ 69{
70 Ecore_File_Monitor *em; 70 Ecore_File_Monitor *em;
71 size_t len; 71 size_t len;
@@ -102,23 +102,25 @@ ecore_file_monitor_backend_add(const char *path,
102 102
103 files = ecore_file_ls(em->path); 103 files = ecore_file_ls(em->path);
104 EINA_LIST_FREE(files, file) 104 EINA_LIST_FREE(files, file)
105 { 105 {
106 Ecore_File *f; 106 Ecore_File *f;
107 char buf[PATH_MAX]; 107 char buf[PATH_MAX];
108 108
109 f = calloc(1, sizeof(Ecore_File)); 109 f = calloc(1, sizeof(Ecore_File));
110 if (!f) 110 if (!f)
111 { 111 {
112 free(file); 112 free(file);
113 continue; 113 continue;
114 } 114 }
115 115
116 snprintf(buf, sizeof(buf), "%s/%s", em->path, file); 116 snprintf(buf, sizeof(buf), "%s/%s", em->path, file);
117 f->name = file; 117 f->name = file;
118 f->mtime = ecore_file_mod_time(buf); 118 f->mtime = ecore_file_mod_time(buf);
119 f->is_dir = ecore_file_is_dir(buf); 119 f->is_dir = ecore_file_is_dir(buf);
120 em->files = (Ecore_File *) eina_inlist_append(EINA_INLIST_GET(em->files), EINA_INLIST_GET(f)); 120 em->files =
121 } 121 (Ecore_File *) eina_inlist_append(EINA_INLIST_GET(em->files),
122 EINA_INLIST_GET(f));
123 }
122 } 124 }
123 } 125 }
124 else 126 else