diff options
author | deraadt <deraadt@openbsd.org> | 2004-03-10 00:33:56 +0000 |
---|---|---|
committer | deraadt <deraadt@openbsd.org> | 2004-03-10 00:33:56 +0000 |
commit | 300267ea0c08776adecd74382e31d8d4e183e3c4 (patch) | |
tree | c9d271fbd865386152b687c9000322d4932089fc /libexec/spamlogd | |
parent | fix missing space, also from (diff) | |
download | wireguard-openbsd-300267ea0c08776adecd74382e31d8d4e183e3c4.tar.xz wireguard-openbsd-300267ea0c08776adecd74382e31d8d4e183e3c4.zip |
spaces
Diffstat (limited to 'libexec/spamlogd')
-rw-r--r-- | libexec/spamlogd/spamlogd.c | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/libexec/spamlogd/spamlogd.c b/libexec/spamlogd/spamlogd.c index da33995078c..708e4b942b6 100644 --- a/libexec/spamlogd/spamlogd.c +++ b/libexec/spamlogd/spamlogd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spamlogd.c,v 1.5 2004/03/07 20:20:07 otto Exp $ */ +/* $OpenBSD: spamlogd.c,v 1.6 2004/03/10 00:35:55 deraadt Exp $ */ /* * Copyright (c) 2004 Bob Beck. All rights reserved. @@ -45,9 +45,9 @@ dbupdate(char *dbname, char *ip) BTREEINFO btreeinfo; DBT dbk, dbd; DB *db; - struct gdata gd; - time_t now; - int r; + struct gdata gd; + time_t now; + int r; struct in_addr ia; now = time(NULL); @@ -188,7 +188,7 @@ main(int argc, char **argv) err(1, "fdopen"); tzset(); openlog_r("spamlogd", LOG_PID | LOG_NDELAY, LOG_DAEMON, &sdata); - + lbuf = NULL; while ((buf = fgetln(f, &len))) { char *cp = NULL; @@ -207,7 +207,7 @@ main(int argc, char **argv) } if (!inbound && strstr(buf, "pass out") != NULL) { - /* + /* * this is outbound traffic - we whitelist * the destination address, because we assume * that a reply may come to this outgoing mail @@ -219,18 +219,17 @@ main(int argc, char **argv) if (cp != NULL) { *cp = '\0'; cp = buf2; - syslog_r(LOG_DEBUG, &sdata, - "outbound %s\n", cp); + syslog_r(LOG_DEBUG, &sdata, + "outbound %s\n", cp); } - } - else + } else cp = NULL; } } else { - /* + /* * this is inbound traffic - we whitelist - * the source address, because this is + * the source address, because this is * traffic presumably to our real MTA */ if ((cp = (strchr(buf, '>'))) != NULL) { @@ -242,9 +241,8 @@ main(int argc, char **argv) while (*cp != ' ' && cp >= buf) cp--; cp++; - syslog_r(LOG_DEBUG, &sdata, - "inbound %s\n", cp); - + syslog_r(LOG_DEBUG, &sdata, + "inbound %s\n", cp); } } if (cp != NULL) |