Permalink
Browse files

make function static

  • Loading branch information...
itojun
itojun committed Jun 12, 2002
1 parent fb13f3a commit cda6839db3180b92ff4c940d1a3b97868bb3762e
Showing with 4 additions and 4 deletions.
  1. +3 −2 kame/sys/netkey/key.c
  2. +1 −2 kame/sys/netkey/key.h
View
@@ -1,4 +1,4 @@
-/* $KAME: key.c,v 1.246 2002/06/12 03:42:46 itojun Exp $ */
+/* $KAME: key.c,v 1.247 2002/06/12 03:45:51 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -445,6 +445,7 @@ static int key_cmpsaidx
static int key_sockaddrcmp __P((struct sockaddr *, struct sockaddr *, int));
static int key_bbcmp __P((caddr_t, caddr_t, u_int));
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_int8_t key_proto2satype __P((u_int16_t));
@@ -4540,7 +4541,7 @@ key_srandom()
return;
}
-u_long
+static u_long
key_random()
{
u_long value;
View
@@ -1,4 +1,4 @@
-/* $KAME: key.h,v 1.24 2002/06/12 03:42:46 itojun Exp $ */
+/* $KAME: key.h,v 1.25 2002/06/12 03:45:51 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -64,7 +64,6 @@ extern int key_cmpspidx_withmask
__P((struct secpolicyindex *, struct secpolicyindex *));
extern int key_spdacquire __P((struct secpolicy *));
extern void key_timehandler __P((void *));
-extern u_long key_random __P((void));
extern void key_randomfill __P((void *, size_t));
extern void key_freereg __P((struct socket *));
extern int key_parse __P((struct mbuf *, struct socket *));

0 comments on commit cda6839

Please sign in to comment.