summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2013-05-17 09:04:31 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2013-05-17 09:04:31 +0000
commitfe919984faaad7f85efad23fae9c435e3ffedfe1 (patch)
tree0905e754bd05a203118e56e372f266639c5c86c5 /sys
parent2f32d10ffc3124fd87e6fe7dfbbab875ee9631e3 (diff)
Move an extern declaration into its corresponding header file.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/in_pcb.h4
-rw-r--r--sys/netinet/ip_input.c5
-rw-r--r--sys/netinet/tcp_usrreq.c5
-rw-r--r--sys/netinet/udp_usrreq.c5
4 files changed, 6 insertions, 13 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h
index e47636e7121..0831cfbd6a1 100644
--- a/sys/netinet/in_pcb.h
+++ b/sys/netinet/in_pcb.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: in_pcb.h,v 1.77 2013/03/29 13:16:14 bluhm Exp $ */
+/* $OpenBSD: in_pcb.h,v 1.78 2013/05/17 09:04:30 mpi Exp $ */
/* $NetBSD: in_pcb.h,v 1.14 1996/02/13 23:42:00 christos Exp $ */
/*
@@ -248,6 +248,8 @@ struct baddynamicports {
#ifdef _KERNEL
+extern struct baddynamicports baddynamicports;
+
#define sotopf(so) (so->so_proto->pr_domain->dom_family)
void in_losing(struct inpcb *);
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index d4fc1c38af1..6c826adfa84 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_input.c,v 1.210 2013/04/24 10:17:08 mpi Exp $ */
+/* $OpenBSD: ip_input.c,v 1.211 2013/05/17 09:04:30 mpi Exp $ */
/* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */
/*
@@ -116,9 +116,6 @@ struct rttimer_queue *ip_mtudisc_timeout_q = NULL;
int ip_maxqueue = 300;
int ip_frags = 0;
-/* from in_pcb.c */
-extern struct baddynamicports baddynamicports;
-
int *ipctl_vars[IPCTL_MAXID] = IPCTL_VARS;
struct in_ifaddrhead in_ifaddr;
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index fbafe9d3fc7..cd232e44685 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_usrreq.c,v 1.111 2013/04/10 08:50:59 mpi Exp $ */
+/* $OpenBSD: tcp_usrreq.c,v 1.112 2013/05/17 09:04:30 mpi Exp $ */
/* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */
/*
@@ -100,9 +100,6 @@
#include <netinet/tcpip.h>
#include <netinet/tcp_debug.h>
-/* from in_pcb.c */
-extern struct baddynamicports baddynamicports;
-
#ifndef TCP_SENDSPACE
#define TCP_SENDSPACE 1024*16
#endif
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index ee306d33dd2..1231135e191 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udp_usrreq.c,v 1.160 2013/04/10 08:50:59 mpi Exp $ */
+/* $OpenBSD: udp_usrreq.c,v 1.161 2013/05/17 09:04:30 mpi Exp $ */
/* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */
/*
@@ -136,9 +136,6 @@ void udp_notify(struct inpcb *, int);
#endif
int udbhashsize = UDBHASHSIZE;
-/* from in_pcb.c */
-extern struct baddynamicports baddynamicports;
-
void
udp_init()
{