From a0a0c69ef32df5734a96c4a2abb58c385c2058b5 Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Fri, 17 May 2019 23:45:24 +0300 Subject: daemon: make some functions static. The functions in question should only be used within the compilation unit and should not be exported. Signed-off-by: Gediminas Jakutis --- src/daemon/settings.c | 6 +++--- src/daemon/settings_private.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/daemon') diff --git a/src/daemon/settings.c b/src/daemon/settings.c index c537510..0fb1648 100644 --- a/src/daemon/settings.c +++ b/src/daemon/settings.c @@ -77,7 +77,7 @@ char *setting_im_proto(void) } /* could be a one-liner, but let's make the logic more obvious */ -int test_flag(unsigned int flag) +static int test_flag(unsigned int flag) { int ret; @@ -87,12 +87,12 @@ int test_flag(unsigned int flag) return ret; } -void set_flag(unsigned int flag) +static void set_flag(unsigned int flag) { settings.flags |= flag; } -void unset_flag(unsigned int flag) +static void unset_flag(unsigned int flag) { settings.flags &= ~flag; } diff --git a/src/daemon/settings_private.h b/src/daemon/settings_private.h index 3d713b3..33a1543 100644 --- a/src/daemon/settings_private.h +++ b/src/daemon/settings_private.h @@ -38,8 +38,8 @@ static struct settings { char *im_proto; } settings; -int test_flag(unsigned int flag); -void set_flag(unsigned int flag); -void unset_flag(unsigned int flag); +static int test_flag(unsigned int flag); +static void set_flag(unsigned int flag); +static void unset_flag(unsigned int flag); #endif /* USURPATION_SETTINGS_PRIVATE_H */ -- cgit v1.2.3