summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-08-28 08:31:17 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-08-28 22:17:51 +0200
commit8f209f0ef29ec7fe1fbb99c7c101946603bcd7bf (patch)
tree52b9fc5f54b5e917543027aba0dc19d9e429c903
parent8abef6397d380b72283bd2e9f0603378ba537ab2 (diff)
downloadsssd-8f209f0ef29ec7fe1fbb99c7c101946603bcd7bf.tar.gz
sssd-8f209f0ef29ec7fe1fbb99c7c101946603bcd7bf.tar.xz
sssd-8f209f0ef29ec7fe1fbb99c7c101946603bcd7bf.zip
MONITOR: Move function declaration out of conditional build
Function monitor_config_file_fallback was defined inside of conditional block "#ifdef HAVE_SYS_INOTIFY_H", but it was also used out of this block. This patch move declaration of function before start of conditional build section.
-rw-r--r--src/monitor/monitor.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c
index bf729e653..baeb48687 100644
--- a/src/monitor/monitor.c
+++ b/src/monitor/monitor.c
@@ -1638,6 +1638,12 @@ done:
return ret;
}
+errno_t monitor_config_file_fallback(TALLOC_CTX *mem_ctx,
+ struct mt_ctx *ctx,
+ const char *file,
+ monitor_reconf_fn fn,
+ bool ignore_missing);
+
#ifdef HAVE_SYS_INOTIFY_H
static void process_config_file(struct tevent_context *ev,
struct tevent_timer *te,
@@ -1793,11 +1799,6 @@ done:
talloc_free(tmp_ctx);
}
-errno_t monitor_config_file_fallback(TALLOC_CTX *mem_ctx,
- struct mt_ctx *ctx,
- const char *file,
- monitor_reconf_fn fn,
- bool ignore_missing);
static void rewatch_config_file(struct tevent_context *ev,
struct tevent_timer *te,
struct timeval t, void *ptr)