From ff2f1e086a9af8fb7407690640cb348dbf8d6a76 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Fri, 31 Oct 2014 09:13:36 -0400 Subject: [PATCH] ecore-file: Fix formatting. Summary: No functional changes, just formatting Signed-off-by: Chris Michael --- src/lib/ecore_file/ecore_file_monitor_poll.c | 34 +++++++++++++++------------- 1 file 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 03ac117..088787e 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) Ecore_File_Monitor * ecore_file_monitor_backend_add(const char *path, - void (*func) (void *data, Ecore_File_Monitor *em, - Ecore_File_Event event, - const char *path), - void *data) + void (*func) (void *data, Ecore_File_Monitor *em, + Ecore_File_Event event, + const char *path), + void *data) { Ecore_File_Monitor *em; size_t len; @@ -102,23 +102,25 @@ ecore_file_monitor_backend_add(const char *path, files = ecore_file_ls(em->path); EINA_LIST_FREE(files, file) - { - Ecore_File *f; - char buf[PATH_MAX]; + { + Ecore_File *f; + char buf[PATH_MAX]; - f = calloc(1, sizeof(Ecore_File)); - if (!f) + f = calloc(1, sizeof(Ecore_File)); + if (!f) { free(file); - continue; + continue; } - snprintf(buf, sizeof(buf), "%s/%s", em->path, file); - f->name = file; - f->mtime = ecore_file_mod_time(buf); - f->is_dir = ecore_file_is_dir(buf); - em->files = (Ecore_File *) eina_inlist_append(EINA_INLIST_GET(em->files), EINA_INLIST_GET(f)); - } + snprintf(buf, sizeof(buf), "%s/%s", em->path, file); + f->name = file; + f->mtime = ecore_file_mod_time(buf); + f->is_dir = ecore_file_is_dir(buf); + em->files = + (Ecore_File *) eina_inlist_append(EINA_INLIST_GET(em->files), + EINA_INLIST_GET(f)); + } } } else -- 2.7.4