diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2014-08-05 15:26:48 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-10-06 14:17:54 +0200 |
commit | e4f6562e4043aa645088862d1cc657c3eff43c49 (patch) | |
tree | 22e56df69dc36b975121198c6423fdc9c82c3e17 /src/monitor | |
parent | 0bed97f6ca4ad8bb61de9114c23051e7eaa8d1fc (diff) | |
download | sssd-e4f6562e4043aa645088862d1cc657c3eff43c49.tar.gz sssd-e4f6562e4043aa645088862d1cc657c3eff43c49.tar.xz sssd-e4f6562e4043aa645088862d1cc657c3eff43c49.zip |
MONITOR: Make internal functions static
Several functions in the monitor.c file were not marked as static even
though they were only used inside monitor.c
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/monitor')
-rw-r--r-- | src/monitor/monitor.c | 26 | ||||
-rw-r--r-- | src/monitor/monitor.h | 3 |
2 files changed, 13 insertions, 16 deletions
diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c index 39f4e6437..46b630c25 100644 --- a/src/monitor/monitor.c +++ b/src/monitor/monitor.c @@ -912,7 +912,7 @@ static char *check_services(char **services) return NULL; } -int get_monitor_config(struct mt_ctx *ctx) +static int get_monitor_config(struct mt_ctx *ctx) { int ret; int timeout_seconds; @@ -1665,11 +1665,11 @@ 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); +static 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_INOTIFY static void process_config_file(struct tevent_context *ev, @@ -2079,11 +2079,11 @@ static int monitor_config_file(TALLOC_CTX *mem_ctx, 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) +static errno_t monitor_config_file_fallback(TALLOC_CTX *mem_ctx, + struct mt_ctx *ctx, + const char *file, + monitor_reconf_fn fn, + bool ignore_missing) { struct config_file_callback *cb = NULL; struct stat file_stat; @@ -2138,8 +2138,8 @@ errno_t monitor_config_file_fallback(TALLOC_CTX *mem_ctx, return EOK; } -int monitor_process_init(struct mt_ctx *ctx, - const char *config_file) +static int monitor_process_init(struct mt_ctx *ctx, + const char *config_file) { TALLOC_CTX *tmp_ctx; struct tevent_signal *tes; diff --git a/src/monitor/monitor.h b/src/monitor/monitor.h index ab23e005c..b5a300bf3 100644 --- a/src/monitor/monitor.h +++ b/src/monitor/monitor.h @@ -37,9 +37,6 @@ typedef int (*monitor_reconf_fn) (struct config_file_ctx *file_ctx, struct mt_ctx; -int monitor_process_init(struct mt_ctx *ctx, - const char *config_file); - /* from monitor_netlink.c */ struct netlink_ctx; |