summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Hill <dhill@cvs.openbsd.org>2006-03-15 01:32:09 +0000
committerDavid Hill <dhill@cvs.openbsd.org>2006-03-15 01:32:09 +0000
commit5ecc7ad5f796e3f4369682fbed2187a8172d9b46 (patch)
tree3cf6a9029842a58521c95011895acf9227fc6cc0
parent73b405268693e9e060a1bf8ea91f4d6589fce1bd (diff)
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;