diff options
author | lzmths <luizmatheus.ac@gmail.com> | 2015-12-08 20:20:52 -0300 |
---|---|---|
committer | lzmths <luizmatheus.ac@gmail.com> | 2015-12-08 20:20:52 -0300 |
commit | df353b050f279d55e9164f9b39837972c900af2f (patch) | |
tree | d1f9c1237f0feac7c9182645c76a2babfd48d809 /contrib/exim | |
parent | 60da1e02c949c491552644b29c3e7b0e3d36da93 (diff) | |
download | rspamd-df353b050f279d55e9164f9b39837972c900af2f.tar.gz rspamd-df353b050f279d55e9164f9b39837972c900af2f.zip |
Refactoring conditional directives that break parts of statements.
Diffstat (limited to 'contrib/exim')
-rw-r--r-- | contrib/exim/local_scan.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/exim/local_scan.c b/contrib/exim/local_scan.c index cffe9de29..20d3ba246 100644 --- a/contrib/exim/local_scan.c +++ b/contrib/exim/local_scan.c @@ -331,6 +331,7 @@ int GetAndTransferMessage (int fd, char *sFile) char answ [4]; int iStatus; int Len, ccnt; + int test; iStatus = GetFiles ((char *)sFile, fd); @@ -344,10 +345,11 @@ int GetAndTransferMessage (int fd, char *sFile) for (ccnt = 0; ccnt <= MAX_FAILS_C; ccnt ++) { #ifdef RSPAM_UNIXSOCKET - if (connect (sock, (struct sockaddr *) &ssun, sizeof (struct sockaddr_un)) < 0) + test = connect (sock, (struct sockaddr *) &ssun, sizeof (struct sockaddr_un)) < 0; #else - if (connect (sock, (struct sockaddr *) &ssin, sizeof (struct sockaddr_in)) < 0) + test = connect (sock, (struct sockaddr *) &ssin, sizeof (struct sockaddr_in)) < 0; #endif + if (test) { if (ccnt < MAX_FAILS_C) usleep (1000); |