diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2001-07-05 12:37:06 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2001-07-05 12:37:06 +0000 |
commit | 4d054eb4744e3933df6e31b5a2890861f0bea535 (patch) | |
tree | 5093771e2a2e4655a5adb308ceb73f3639a1175f /sbin/isakmpd/sa.c | |
parent | bccfd06344337d5cc1a5b43214e0b384da9fdb6d (diff) |
Add prototypes and some other various cleanup.
Diffstat (limited to 'sbin/isakmpd/sa.c')
-rw-r--r-- | sbin/isakmpd/sa.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sbin/isakmpd/sa.c b/sbin/isakmpd/sa.c index 625b88cf604..df5e039fbb8 100644 --- a/sbin/isakmpd/sa.c +++ b/sbin/isakmpd/sa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sa.c,v 1.46 2001/07/01 19:48:44 niklas Exp $ */ +/* $OpenBSD: sa.c,v 1.47 2001/07/05 12:36:55 ho Exp $ */ /* $EOM: sa.c,v 1.112 2000/12/12 00:22:52 niklas Exp $ */ /* @@ -74,6 +74,9 @@ */ #define MAX_BUCKET_BITS 16 +#if 0 +static void sa_resize (void); +#endif static void sa_dump (char *, struct sa *); static void sa_soft_expire (void *); static void sa_hard_expire (void *); @@ -84,7 +87,7 @@ static LIST_HEAD (sa_list, sa) *sa_tab; static int bucket_mask; void -sa_init () +sa_init (void) { int i; @@ -99,9 +102,10 @@ sa_init () } } +#if 0 /* XXX We don't yet resize. */ -void -sa_resize () +static void +sa_resize (void) { int new_mask = (bucket_mask + 1) * 2 - 1; int i; @@ -119,6 +123,7 @@ sa_resize () /* XXX Rehash existing entries. */ } +#endif /* Lookup an SA with the help from a user-supplied checking function. */ struct sa * |