summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFrancois Perrad <francois.perrad@gadz.org>2016-01-01 09:46:09 +0100
committerMatt Johnston <matt@ucc.asn.au>2016-03-16 22:41:19 +0800
commitaf87369cb32d4e967c389cce35f508817682f077 (patch)
tree776f1c93da3e48e476b07e686ac7b32bde7fb116
parentedea73b1f8d517ca3d41caa0ba7632f95e5c8272 (diff)
add static in function definition
like in function declaration
-rw-r--r--cli-tcpfwd.c2
-rw-r--r--svr-main.c2
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;