summaryrefslogtreecommitdiffstats
path: root/realrcptto.c
diff options
context:
space:
mode:
authorManuel Mausz <manuel@mausz.at>2019-06-11 15:28:27 +0200
committermanuel <manuel@mausz.at>2019-06-11 15:29:11 +0200
commit692760720b197b46e8e4268bede8cad6f90399aa (patch)
tree0d0d5f45759b83e15d6668357f9482dca236880b /realrcptto.c
parent54bb1142daa7c25f626176bb9357e1fc7ca75fbb (diff)
downloadqmail-692760720b197b46e8e4268bede8cad6f90399aa.tar.gz
qmail-692760720b197b46e8e4268bede8cad6f90399aa.tar.bz2
qmail-692760720b197b46e8e4268bede8cad6f90399aa.zip
Fix compile warnings...
Diffstat (limited to 'realrcptto.c')
-rw-r--r--realrcptto.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/realrcptto.c b/realrcptto.c
index 0f275ba..f5f6f15 100644
--- a/realrcptto.c
+++ b/realrcptto.c
@@ -1,5 +1,6 @@
1#include <sys/types.h> 1#include <sys/types.h>
2#include <sys/stat.h> 2#include <sys/stat.h>
3#include <unistd.h>
3#include <stdlib.h> 4#include <stdlib.h>
4#include <pwd.h> 5#include <pwd.h>
5#include <string.h> 6#include <string.h>
@@ -19,7 +20,6 @@
19#include "env.h" 20#include "env.h"
20#include "slurpclose.h" 21#include "slurpclose.h"
21#include "control.h" 22#include "control.h"
22#include "readwrite.h"
23 23
24extern void die_nomem(); 24extern void die_nomem();
25extern void die_control(); 25extern void die_control();
@@ -50,6 +50,8 @@ static char remoteipbuf[64]=" ";
50static int flagdenyall; 50static int flagdenyall;
51static int flagdenyany; 51static int flagdenyany;
52 52
53int realrcptto(char *addr, int depth);
54
53void realrcptto_init() 55void realrcptto_init()
54{ 56{
55 char *x; 57 char *x;
@@ -276,16 +278,7 @@ int depth;
276 return 1; 278 return 1;
277} 279}
278 280
279int realrcptto(addr, depth) 281static int realrcptto_ex(addr, depth)
280char *addr;
281int depth;
282{
283 env_unset("DTUSER");
284 extension = NULL;
285 return realrcptto_ex(addr, depth);
286}
287
288int realrcptto_ex(addr, depth)
289char *addr; 282char *addr;
290int depth; 283int depth;
291{ 284{
@@ -476,6 +469,15 @@ int depth;
476 } 469 }
477} 470}
478 471
472int realrcptto(addr, depth)
473char *addr;
474int depth;
475{
476 env_unset("DTUSER");
477 extension = NULL;
478 return realrcptto_ex(addr, depth);
479}
480
479int realrcptto_deny() 481int realrcptto_deny()
480{ 482{
481 return flagdenyall && flagdenyany; 483 return flagdenyall && flagdenyany;