make function static

This commit is contained in:
itojun 2002-06-12 03:46:16 +00:00
parent bad1f500a7
commit cc8fe8c179
2 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: key.c,v 1.68 2002/06/12 03:37:14 itojun Exp $ */ /* $NetBSD: key.c,v 1.69 2002/06/12 03:46:16 itojun Exp $ */
/* $KAME: key.c,v 1.234 2002/05/13 03:21:17 itojun Exp $ */ /* $KAME: key.c,v 1.234 2002/05/13 03:21:17 itojun Exp $ */
/* /*
@ -35,7 +35,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.68 2002/06/12 03:37:14 itojun Exp $"); __KERNEL_RCSID(0, "$NetBSD: key.c,v 1.69 2002/06/12 03:46:16 itojun Exp $");
#include "opt_inet.h" #include "opt_inet.h"
#include "opt_ipsec.h" #include "opt_ipsec.h"
@ -355,6 +355,7 @@ static struct mbuf *key_setsadblifetime __P((u_int16_t, u_int32_t,
static struct mbuf *key_setsadbxpolicy __P((u_int16_t, u_int8_t, static struct mbuf *key_setsadbxpolicy __P((u_int16_t, u_int8_t,
u_int32_t)); u_int32_t));
static void *key_newbuf __P((const void *, u_int)); static void *key_newbuf __P((const void *, u_int));
static int key_ismyaddr __P((struct sockaddr *));
#ifdef INET6 #ifdef INET6
static int key_ismyaddr6 __P((struct sockaddr_in6 *)); static int key_ismyaddr6 __P((struct sockaddr_in6 *));
#endif #endif
@ -367,6 +368,7 @@ static int key_cmpsaidx_withoutmode
static int key_sockaddrcmp __P((struct sockaddr *, struct sockaddr *, int)); static int key_sockaddrcmp __P((struct sockaddr *, struct sockaddr *, int));
static int key_bbcmp __P((caddr_t, caddr_t, u_int)); static int key_bbcmp __P((caddr_t, caddr_t, u_int));
static void key_srandom __P((void)); static void key_srandom __P((void));
static u_long key_random __P((void));
static u_int16_t key_satype2proto __P((u_int8_t)); static u_int16_t key_satype2proto __P((u_int8_t));
static u_int8_t key_proto2satype __P((u_int16_t)); static u_int8_t key_proto2satype __P((u_int16_t));
@ -3533,7 +3535,7 @@ key_newbuf(src, len)
* OUT: 1: true, i.e. my address. * OUT: 1: true, i.e. my address.
* 0: false * 0: false
*/ */
int static int
key_ismyaddr(sa) key_ismyaddr(sa)
struct sockaddr *sa; struct sockaddr *sa;
{ {
@ -4229,7 +4231,7 @@ key_srandom()
return; return;
} }
u_long static u_long
key_random() key_random()
{ {
u_long value; u_long value;

View File

@ -1,4 +1,4 @@
/* $NetBSD: key.h,v 1.10 2002/06/12 03:37:15 itojun Exp $ */ /* $NetBSD: key.h,v 1.11 2002/06/12 03:46:18 itojun Exp $ */
/* $KAME: key.h,v 1.19 2000/10/05 04:02:58 itojun Exp $ */ /* $KAME: key.h,v 1.19 2000/10/05 04:02:58 itojun Exp $ */
/* /*
@ -57,14 +57,12 @@ extern struct secpolicy *key_newsp __P((void));
extern struct secpolicy *key_msg2sp __P((struct sadb_x_policy *, extern struct secpolicy *key_msg2sp __P((struct sadb_x_policy *,
size_t, int *)); size_t, int *));
extern struct mbuf *key_sp2msg __P((struct secpolicy *)); extern struct mbuf *key_sp2msg __P((struct secpolicy *));
extern int key_ismyaddr __P((struct sockaddr *));
extern int key_cmpspidx_exactly extern int key_cmpspidx_exactly
__P((struct secpolicyindex *, struct secpolicyindex *)); __P((struct secpolicyindex *, struct secpolicyindex *));
extern int key_cmpspidx_withmask extern int key_cmpspidx_withmask
__P((struct secpolicyindex *, struct secpolicyindex *)); __P((struct secpolicyindex *, struct secpolicyindex *));
extern int key_spdacquire __P((struct secpolicy *)); extern int key_spdacquire __P((struct secpolicy *));
extern void key_timehandler __P((void *)); extern void key_timehandler __P((void *));
extern u_long key_random __P((void));
extern void key_randomfill __P((void *, size_t)); extern void key_randomfill __P((void *, size_t));
extern void key_freereg __P((struct socket *)); extern void key_freereg __P((struct socket *));
extern int key_parse __P((struct mbuf *, struct socket *)); extern int key_parse __P((struct mbuf *, struct socket *));