diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2013-08-28 08:31:17 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-08-28 22:02:49 +0200 |
commit | 1bf580d3c6bbcfcff0c3dfd348e7c0a16d9d3d9e (patch) | |
tree | 62bcbf027e42f444a0376b1f9be7e8578700bb3d /src | |
parent | c08e3aca5a8f3869e47c42bded962292cffccce6 (diff) | |
download | sssd-1bf580d3c6bbcfcff0c3dfd348e7c0a16d9d3d9e.tar.gz sssd-1bf580d3c6bbcfcff0c3dfd348e7c0a16d9d3d9e.tar.bz2 sssd-1bf580d3c6bbcfcff0c3dfd348e7c0a16d9d3d9e.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.
Diffstat (limited to 'src')
-rw-r--r-- | src/monitor/monitor.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c index 7604b309..495f31e3 100644 --- a/src/monitor/monitor.c +++ b/src/monitor/monitor.c @@ -1636,6 +1636,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, @@ -1791,11 +1797,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) |