From 1de0ea4abd7153c6fcdbdbac6048a1e46f673fc2 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 31 Jan 2017 11:32:49 +0100 Subject: Sort out variable and function declarations. - Make static what can be made static. - Add declaration where they were missing. - Don't define variables in headers. - Move declaations to the proper locations. - Pick up declarations from the proper headers. Signed-off-by: Ralf Baechle --- ax25rtd/ax25rtd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ax25rtd/ax25rtd.c') diff --git a/ax25rtd/ax25rtd.c b/ax25rtd/ax25rtd.c index b0b288c..a40cffe 100644 --- a/ax25rtd/ax25rtd.c +++ b/ax25rtd/ax25rtd.c @@ -93,13 +93,13 @@ config *port_get_config(char *port) return NULL; } -void sig_reload(int d) +static void sig_reload(int d) { reload = 1; signal(SIGHUP, sig_reload); } -void sig_debug(int d) +static void sig_debug(int d) { fprintf(stderr, "config:\n"); dump_config(2); @@ -110,7 +110,7 @@ void sig_debug(int d) signal(SIGUSR1, sig_debug); } -void sig_term(int d) +static void sig_term(int d) { save_cache(); daemon_shutdown(0); -- cgit v1.2.3