diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2004-03-07 20:20:08 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2004-03-07 20:20:08 +0000 |
commit | 4beaa18bce8705a0c7c288df0ca2eb60b46d646d (patch) | |
tree | 79bd35afec771b146c712b61c55d6b76e1696578 /libexec | |
parent | 1e85be7dfb8909c9b5610ebccfc8c9a799c4351b (diff) |
remove some unused variables and includes; KNF
ok beck@
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/spamlogd/spamlogd.c | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/libexec/spamlogd/spamlogd.c b/libexec/spamlogd/spamlogd.c index 07a7e118d65..da33995078c 100644 --- a/libexec/spamlogd/spamlogd.c +++ b/libexec/spamlogd/spamlogd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spamlogd.c,v 1.4 2004/03/01 17:03:10 otto Exp $ */ +/* $OpenBSD: spamlogd.c,v 1.5 2004/03/07 20:20:07 otto Exp $ */ /* * Copyright (c) 2004 Bob Beck. All rights reserved. @@ -20,37 +20,24 @@ #include <sys/types.h> #include <sys/socket.h> -#include <sys/ioctl.h> -#include <sys/fcntl.h> -#include <sys/wait.h> -#include <net/if.h> #include <netinet/in.h> -#include <net/pfvar.h> #include <arpa/inet.h> #include <db.h> #include <err.h> -#include <errno.h> #include <fcntl.h> -#include <pwd.h> #include <stdio.h> #include <stdlib.h> #include <syslog.h> #include <string.h> -#include <time.h> #include <unistd.h> #include "grey.h" #define PATH_TCPDUMP "/usr/sbin/tcpdump" -extern struct passwd *pw; -extern FILE * grey; -extern int debug; - struct syslog_data sdata = SYSLOG_DATA_INIT; -size_t whitecount, whitealloc; -char **whitelist; int inbound; /* do we only whitelist inbound smtp? */ -int pfdev; + +extern char *__progname; int dbupdate(char *dbname, char *ip) @@ -129,13 +116,13 @@ dbupdate(char *dbname, char *ip) db->sync(db, 0); db->close(db); db = NULL; - return(-1); + return (-1); } static int usage(void) { - fprintf(stderr, "usage: spamlogd [-I] [-i netif]\n"); + fprintf(stderr, "usage: %s [-I] [-i netif]\n", __progname); exit(1); } |