summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_id.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2007-05-27 19:59:12 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2007-05-27 19:59:12 +0000
commit02c573cc837fc71cf96c400ff054e7578c46ff50 (patch)
tree71fdca4600a6b145204bb875ebf7c5504f45bfe2 /sys/netinet/ip_id.c
parent337c06265982f2fa6ca20cbec1c71d108ea016f4 (diff)
remove more static to avoid confusing the profiler (and maybe ddb too)
prodded by art@ ja ja claudio@
Diffstat (limited to 'sys/netinet/ip_id.c')
-rw-r--r--sys/netinet/ip_id.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/netinet/ip_id.c b/sys/netinet/ip_id.c
index d8c5fe6fef5..339cf09e084 100644
--- a/sys/netinet/ip_id.c
+++ b/sys/netinet/ip_id.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_id.c,v 1.13 2004/06/21 23:50:37 tholo Exp $ */
+/* $OpenBSD: ip_id.c,v 1.14 2007/05/27 19:59:11 dlg Exp $ */
/*
* Copyright 1998 Niels Provos <provos@citi.umich.edu>
@@ -78,8 +78,8 @@ static u_int16_t ru_msb = 0;
static long ru_reseed;
static u_int32_t tmp; /* Storage for unused random */
-static u_int16_t pmod(u_int16_t, u_int16_t, u_int16_t);
-static void ip_initid(void);
+u_int16_t pmod(u_int16_t, u_int16_t, u_int16_t);
+void ip_initid(void);
u_int16_t ip_randomid(void);
/*
@@ -87,7 +87,7 @@ u_int16_t ip_randomid(void);
* of 0 - (mod-1)
*/
-static u_int16_t
+u_int16_t
pmod(u_int16_t gen, u_int16_t expo, u_int16_t mod)
{
u_int16_t s, t, u;
@@ -113,7 +113,7 @@ pmod(u_int16_t gen, u_int16_t expo, u_int16_t mod)
* This function is called from id_randomid() when needed, an
* application does not have to worry about it.
*/
-static void
+void
ip_initid(void)
{
u_int16_t j, i;