From 743156598a933ade65b880c264871ef4c66ace89 Mon Sep 17 00:00:00 2001 From: Mark Watts Date: Sun, 26 Oct 2014 04:38:29 -0500 Subject: [PATCH] Style adjustment - Moved a function-level macro to the top of the function definition --- tagdb_fs.lc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tagdb_fs.lc b/tagdb_fs.lc index af68a92..c0ca4a0 100644 --- a/tagdb_fs.lc +++ b/tagdb_fs.lc @@ -575,6 +575,13 @@ int _readdir_list_file(fuse_fill_dir_t filler, void *buf, const char *name) %(op readdir path buffer filler offset f_info) { +#define list_file(__name) \ +if (_readdir_list_file(filler, buffer, (const char*)(__name)))\ +{\ + res = -1;\ + goto READDIR_END;\ +} + int res = 0; GList *f = NULL; GList *t = NULL; @@ -587,12 +594,6 @@ int _readdir_list_file(fuse_fill_dir_t filler, void *buf, const char *name) GList *prefixed_files = NULL; tagdb_key_t tags = path_extract_key(path); -#define list_file(__name) \ -if (_readdir_list_file(filler, buffer, (const char*)(__name)))\ -{\ - res = -1;\ - goto READDIR_END;\ -} if (g_strcmp0(path, "/") == 0) {