summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordhill <dhill@openbsd.org>2006-03-15 01:32:08 +0000
committerdhill <dhill@openbsd.org>2006-03-15 01:32:08 +0000
commit5ef50bb8f5c77069bdde41f4d01cc877dda20b10 (patch)
tree057b789e260f7c80761f6ff69b4fe23c51c38a0e
parentMake 'no' the default answer to 'Display the list of XXX servers?'. (diff)
downloadwireguard-openbsd-5ef50bb8f5c77069bdde41f4d01cc877dda20b10.tar.xz
wireguard-openbsd-5ef50bb8f5c77069bdde41f4d01cc877dda20b10.zip
Add missing function declarations
Sprinkle some const OK beck@
-rw-r--r--usr.sbin/spamdb/spamdb.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/spamdb/spamdb.c b/usr.sbin/spamdb/spamdb.c
index b6508dfd601..1c451ee4e81 100644
--- a/usr.sbin/spamdb/spamdb.c
+++ b/usr.sbin/spamdb/spamdb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spamdb.c,v 1.14 2005/03/11 23:45:45 beck Exp $ */
+/* $OpenBSD: spamdb.c,v 1.15 2006/03/15 01:32:08 dhill Exp $ */
/*
* Copyright (c) 2004 Bob Beck. All rights reserved.
@@ -37,8 +37,11 @@
#define TRAPHIT 1
#define SPAMTRAP 2
+int dblist(const char *);
+int dbupdate(const char *, char *, int, int);
+
int
-dbupdate(char *dbname, char *ip, int add, int type)
+dbupdate(const char *dbname, char *ip, int add, int type)
{
BTREEINFO btreeinfo;
DBT dbk, dbd;
@@ -175,7 +178,7 @@ dbupdate(char *dbname, char *ip, int add, int type)
}
int
-dblist(char *dbname)
+dblist(const char *dbname)
{
BTREEINFO btreeinfo;
DBT dbk, dbd;