From 692760720b197b46e8e4268bede8cad6f90399aa Mon Sep 17 00:00:00 2001 From: Manuel Mausz Date: Tue, 11 Jun 2019 15:28:27 +0200 Subject: Fix compile warnings... --- realrcptto.c | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'realrcptto.c') diff --git a/realrcptto.c b/realrcptto.c index 0f275ba..f5f6f15 100644 --- a/realrcptto.c +++ b/realrcptto.c @@ -1,5 +1,6 @@ #include #include +#include #include #include #include @@ -19,7 +20,6 @@ #include "env.h" #include "slurpclose.h" #include "control.h" -#include "readwrite.h" extern void die_nomem(); extern void die_control(); @@ -50,6 +50,8 @@ static char remoteipbuf[64]=" "; static int flagdenyall; static int flagdenyany; +int realrcptto(char *addr, int depth); + void realrcptto_init() { char *x; @@ -276,16 +278,7 @@ int depth; return 1; } -int realrcptto(addr, depth) -char *addr; -int depth; -{ - env_unset("DTUSER"); - extension = NULL; - return realrcptto_ex(addr, depth); -} - -int realrcptto_ex(addr, depth) +static int realrcptto_ex(addr, depth) char *addr; int depth; { @@ -476,6 +469,15 @@ int depth; } } +int realrcptto(addr, depth) +char *addr; +int depth; +{ + env_unset("DTUSER"); + extension = NULL; + return realrcptto_ex(addr, depth); +} + int realrcptto_deny() { return flagdenyall && flagdenyany; -- cgit v1.2.3