From 5c9785b32eab0856f2041bb6cf4b9db2a8d0e7bf Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Fri, 5 Dec 2008 23:54:13 +0000 Subject: [PATCH] "fix" some tabbing --- lsyncd.c | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/lsyncd.c b/lsyncd.c index 4d496db..2c579f9 100644 --- a/lsyncd.c +++ b/lsyncd.c @@ -49,10 +49,10 @@ enum lsyncd_exit_code { LSYNCD_SUCCESS = 0, - + /* out-of memory */ LSYNCD_OUTOFMEMORY = 1, - + /* file was not found, or failed to write */ LSYNCD_FILENOTFOUND = 2, @@ -61,7 +61,7 @@ enum lsyncd_exit_code /* command-line arguments given to lsyncd are bad */ LSYNCD_BADPARAMETERS = 4, - + /* Too many excludes files were specified */ LSYNCD_TOOMANYDIRECTORYEXCLUDES = 5, @@ -580,7 +580,7 @@ bool remove_tosync_pos(int p) { tosync_pos--; return true; } - + /** * Parses an option text, replacing all '%' specifiers with * elaborated stuff. duh, currently there is only one, so this @@ -714,7 +714,7 @@ bool action(struct dir_conf * dir_conf, } else if (WEXITSTATUS(status)) { printlogf(LOG_NORMAL, "Forked binary process returned non-zero return code: %i", - WEXITSTATUS(status)); + WEXITSTATUS(status)); return false; } @@ -955,7 +955,7 @@ int add_dirwatch(char const * dirname, int parent, struct dir_conf * dir_conf) // use traditional means to determine if its a directory. isdir = buildpath(subdir, sizeof(subdir), dw, de->d_name, NULL) && !stat(subdir, &st) && - S_ISDIR(st.st_mode); + S_ISDIR(st.st_mode); } else { isdir = false; } @@ -988,7 +988,8 @@ bool remove_dirwatch(const char * name, int parent) // look for the child with the name for (i = 0; i < dir_watch_num; i++) { if (dir_watches[i].wd >= 0 && dir_watches[i].parent == parent && - !strcmp(name, dir_watches[i].dirname)) { + !strcmp(name, dir_watches[i].dirname) + ) { dw = i; break; } @@ -1071,7 +1072,7 @@ bool handle_event(struct inotify_event *event) int subwatch = -1; struct inotify_mask_text *p; - + for (p = mask_texts; p->mask; p++) { if (mask & p->mask) { if (strlen(masktext) + strlen(p->text) + 3 >= sizeof(masktext)) { @@ -1295,7 +1296,7 @@ struct call_option * parse_callopts(xmlNodePtr node) { xc = xmlGetProp(cnode, BAD_CAST "text"); if (xc == NULL) { fprintf(stderr, "error in config file: text attribute missing from