From af87369cb32d4e967c389cce35f508817682f077 Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Fri, 1 Jan 2016 09:46:09 +0100 Subject: [PATCH] add static in function definition like in function declaration --- cli-tcpfwd.c | 2 +- svr-main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli-tcpfwd.c b/cli-tcpfwd.c index c3a1350..03b4b92 100644 --- a/cli-tcpfwd.c +++ b/cli-tcpfwd.c @@ -62,7 +62,7 @@ static const struct ChanType cli_chan_tcplocal = { #ifdef ENABLE_CLI_ANYTCPFWD static void fwd_failed(const char* format, ...) ATTRIB_PRINTF(1,2); -void fwd_failed(const char* format, ...) +static void fwd_failed(const char* format, ...) { va_list param; va_start(param, format); diff --git a/svr-main.c b/svr-main.c index 9252bb6..0130017 100644 --- a/svr-main.c +++ b/svr-main.c @@ -104,7 +104,7 @@ static void main_inetd() { #endif /* INETD_MODE */ #ifdef NON_INETD_MODE -void main_noinetd() { +static void main_noinetd() { fd_set fds; unsigned int i, j; int val;