From 8adb5a3fbcffeb13940880b083f63e69af2c8b78 Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Tue, 17 Aug 2010 20:43:29 +0000 Subject: [PATCH] cosmetics --- lsyncd.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lsyncd.c b/lsyncd.c index 951243c..aa4c747 100644 --- a/lsyncd.c +++ b/lsyncd.c @@ -315,8 +315,6 @@ struct global_options { /** * Global Option: default options to call the binary with. - * - * TODO copy on init. */ struct call_option *default_callopts; @@ -1163,7 +1161,8 @@ append_delay(const struct global_options *opts, /** * Removes a delay. * - * @param TODO + * @param delays the delays vector. + * @param d the delay to remove. */ void remove_delay(struct delay_vector *delays, struct delay *d) @@ -2426,9 +2425,7 @@ parse_settings(struct global_options *opts, xmlNodePtr node) { if (snode->type != XML_ELEMENT_NODE) { continue; } - if (!xmlStrcmp(snode->name, BAD_CAST "singular")) { - opts->flag_singular = 1; - } else if (!xmlStrcmp(snode->name, BAD_CAST "debug")) { + if (!xmlStrcmp(snode->name, BAD_CAST "debug")) { opts->log.loglevel = 1; } else if (!xmlStrcmp(snode->name, BAD_CAST "delay")) { char *p; @@ -2490,6 +2487,8 @@ parse_settings(struct global_options *opts, xmlNodePtr node) { opts->log.flag_nodaemon = 1; } else if (!xmlStrcmp(snode->name, BAD_CAST "no-startup")) { opts->flag_nostartup = 1; + } else if (!xmlStrcmp(snode->name, BAD_CAST "singular")) { + opts->flag_singular = 1; } else if (!xmlStrcmp(snode->name, BAD_CAST "stubborn")) { opts->flag_stubborn = 1; } else {