diff options
author | rwatson <rwatson@FreeBSD.org> | 2009-05-14 20:59:36 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2009-05-14 20:59:36 +0000 |
commit | a17331003b62d651244b335330ed0202c58d376e (patch) | |
tree | 0369e141a32645a704a69ddc119b9df62fe11fcb | |
parent | 775707c28f37ae4104e28debe9a763c06e9028ce (diff) | |
download | FreeBSD-src-a17331003b62d651244b335330ed0202c58d376e.zip FreeBSD-src-a17331003b62d651244b335330ed0202c58d376e.tar.gz |
Staticize two functions not used outside of in_pcb.c: in_pcbremlists() and
db_print_inpcb().
MFC after: 1 month
-rw-r--r-- | sys/netinet/in_pcb.c | 6 | ||||
-rw-r--r-- | sys/netinet/in_pcb.h | 7 |
2 files changed, 4 insertions, 9 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index dbc5ca8..94460bb 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -120,6 +120,8 @@ int ipport_tcplastcount; if ((var) < (min)) { (var) = (min); } \ else if ((var) > (max)) { (var) = (max); } +static void in_pcbremlists(struct inpcb *inp); + static int sysctl_net_ipport_check(SYSCTL_HANDLER_ARGS) { @@ -1512,7 +1514,7 @@ in_pcbrehash(struct inpcb *inp) /* * Remove PCB from various lists. */ -void +static void in_pcbremlists(struct inpcb *inp) { struct inpcbinfo *pcbinfo = inp->inp_pcbinfo; @@ -1878,7 +1880,7 @@ db_print_inpvflag(u_char inp_vflag) } } -void +static void db_print_inpcb(struct inpcb *inp, const char *name, int indent) { diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h index c86f1ab..aa30e43 100644 --- a/sys/netinet/in_pcb.h +++ b/sys/netinet/in_pcb.h @@ -501,14 +501,7 @@ int in_getsockaddr(struct socket *so, struct sockaddr **nam); struct sockaddr * in_sockaddr(in_port_t port, struct in_addr *addr); void in_pcbsosetlabel(struct socket *so); -void in_pcbremlists(struct inpcb *inp); void ipport_tick(void *xtp); - -/* - * Debugging routines compiled in when DDB is present. - */ -void db_print_inpcb(struct inpcb *inp, const char *name, int indent); - #endif /* _KERNEL */ #endif /* !_NETINET_IN_PCB_H_ */ |