diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2011-03-18 22:37:07 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2011-03-18 22:37:07 +0000 |
commit | aee918959827faf84f805af16c0ddd370cbdbd2d (patch) | |
tree | 1cdd1db4a93738d230556da19546080d365d8e7b /libexec | |
parent | 2b28563e04e203995ec27a5927f21b8a3d29335b (diff) |
actually set and use whiteexp in the new -W option.
my goof noticed by Boudewijn Dijkstra.
ok beck@
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/spamlogd/spamlogd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/spamlogd/spamlogd.c b/libexec/spamlogd/spamlogd.c index 69a5a7fcdd9..40fd6e5f51c 100644 --- a/libexec/spamlogd/spamlogd.c +++ b/libexec/spamlogd/spamlogd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spamlogd.c,v 1.20 2011/03/04 21:01:49 okan Exp $ */ +/* $OpenBSD: spamlogd.c,v 1.21 2011/03/18 22:37:06 okan Exp $ */ /* * Copyright (c) 2006 Henning Brauer <henning@openbsd.org> @@ -294,7 +294,7 @@ usage(void) int main(int argc, char **argv) { - int ch, i; + int ch; struct passwd *pw; pcap_handler phandler = logpkt_handler; int syncfd = 0; @@ -323,7 +323,7 @@ main(int argc, char **argv) break; case 'W': /* limit whiteexp to 2160 hours (90 days) */ - i = strtonum(optarg, 1, (24 * 90), &errstr); + whiteexp = strtonum(optarg, 1, (24 * 90), &errstr); if (errstr) usage(); /* convert to seconds from hours */ |