diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-09-16 05:35:03 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-09-16 05:35:03 +0000 |
commit | f35ebbd70a0600b1dd147d2f6eace9d69c4000ac (patch) | |
tree | 36e5645627647f70d3746151a587ffbac3f33607 /libexec/spamlogd | |
parent | 085e3a2a09108c370ab405e8da839c8eb469588a (diff) |
remove unused variables
Diffstat (limited to 'libexec/spamlogd')
-rw-r--r-- | libexec/spamlogd/spamlogd.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libexec/spamlogd/spamlogd.c b/libexec/spamlogd/spamlogd.c index 0f9e5f7aab2..2a7b5e0af2e 100644 --- a/libexec/spamlogd/spamlogd.c +++ b/libexec/spamlogd/spamlogd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spamlogd.c,v 1.9 2004/08/10 16:06:01 otto Exp $ */ +/* $OpenBSD: spamlogd.c,v 1.10 2004/09/16 05:35:02 deraadt Exp $ */ /* * Copyright (c) 2004 Bob Beck. All rights reserved. @@ -117,7 +117,7 @@ dbupdate(char *dbname, char *ip) return (-1); } -static int +static void usage(void) { fprintf(stderr, "usage: %s [-I] [-i interface]\n", __progname); @@ -136,7 +136,6 @@ main(int argc, char **argv) int ch, p[2]; char *buf, *lbuf; size_t len; - pid_t pid; FILE *f; @@ -162,7 +161,7 @@ main(int argc, char **argv) err(1, "daemon"); if (pipe(p) == -1) err(1, "pipe"); - switch (pid = fork()) { + switch (fork()) { case -1: err(1, "fork"); case 0: |