From ff98689d2df29c50b8f92e6d1fd6ec8036e72c57 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Thu, 16 Nov 1995 09:51:22 +0000 Subject: [PATCH] Fixed recent staticizations. Some protypes for static functions were left in headers and not staticized. --- sys/netinet/udp_usrreq.c | 4 +++- sys/netinet/udp_var.h | 4 +--- sys/vm/swap_pager.c | 11 ++++++++++- sys/vm/swap_pager.h | 7 +------ 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index a801fab96f4f..1034af833a1f 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)udp_usrreq.c 8.6 (Berkeley) 5/23/95 - * $Id: udp_usrreq.c,v 1.14 1995/09/22 19:56:26 wollman Exp $ + * $Id: udp_usrreq.c,v 1.15 1995/11/14 20:34:51 phk Exp $ */ #include @@ -87,6 +87,8 @@ SYSCTL_STRUCT(_net_inet_udp, UDPCTL_STATS, stats, CTLFLAG_RD, static struct sockaddr_in udp_in = { sizeof(udp_in), AF_INET }; static void udp_detach __P((struct inpcb *)); +static int udp_output __P((struct inpcb *, struct mbuf *, struct mbuf *, + struct mbuf *)); static void udp_notify __P((struct inpcb *, int)); static struct mbuf *udp_saveopt __P((caddr_t, int, int)); diff --git a/sys/netinet/udp_var.h b/sys/netinet/udp_var.h index 74888886a5ba..8b4d0fce05e7 100644 --- a/sys/netinet/udp_var.h +++ b/sys/netinet/udp_var.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)udp_var.h 8.1 (Berkeley) 6/10/93 - * $Id: udp_var.h,v 1.5 1995/04/09 01:29:31 davidg Exp $ + * $Id: udp_var.h,v 1.6 1995/11/14 20:34:56 phk Exp $ */ #ifndef _NETINET_UDP_VAR_H_ @@ -95,8 +95,6 @@ extern struct udpstat udpstat; void udp_ctlinput __P((int, struct sockaddr *, struct ip *)); void udp_init __P((void)); void udp_input __P((struct mbuf *, int)); -int udp_output __P((struct inpcb *, - struct mbuf *, struct mbuf *, struct mbuf *)); int udp_usrreq __P((struct socket *, int, struct mbuf *, struct mbuf *, struct mbuf *)); #endif diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index 2ee31dad7ed9..a6a6612bab3b 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -39,7 +39,7 @@ * from: Utah $Hdr: swap_pager.c 1.4 91/04/30$ * * @(#)swap_pager.c 8.9 (Berkeley) 3/21/94 - * $Id: swap_pager.c,v 1.48 1995/11/02 06:42:45 davidg Exp $ + * $Id: swap_pager.c,v 1.49 1995/11/14 20:53:20 phk Exp $ */ /* @@ -117,6 +117,14 @@ static struct pagerlst *swp_qs[] = { /* * pagerops for OBJT_SWAP - "swap pager". */ +static vm_object_t + swap_pager_alloc __P((void *handle, vm_size_t size, + vm_prot_t prot, vm_offset_t offset)); +static void swap_pager_dealloc __P((vm_object_t object)); +static boolean_t + swap_pager_haspage __P((vm_object_t object, vm_offset_t offset, + int *before, int *after)); +static void swap_pager_init __P((void)); struct pagerops swappagerops = { swap_pager_init, swap_pager_alloc, @@ -131,6 +139,7 @@ static int npendingio = NPENDINGIO; static void swap_pager_finish(); int dmmin, dmmax; +static void swap_pager_iodone __P((struct buf *)); static inline void swapsizecheck() diff --git a/sys/vm/swap_pager.h b/sys/vm/swap_pager.h index e8f0d5c83412..41b3e538ae80 100644 --- a/sys/vm/swap_pager.h +++ b/sys/vm/swap_pager.h @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * from: @(#)swap_pager.h 7.1 (Berkeley) 12/5/90 - * $Id: swap_pager.h,v 1.9 1995/08/16 16:14:25 bde Exp $ + * $Id: swap_pager.h,v 1.10 1995/10/07 19:02:52 davidg Exp $ */ /* @@ -67,14 +67,9 @@ typedef struct swblock *sw_blk_t; extern struct pagerlst swap_pager_un_object_list; extern int swap_pager_full; -void swap_pager_init __P((void)); -vm_object_t swap_pager_alloc __P((void *, vm_size_t, vm_prot_t, vm_offset_t)); -void swap_pager_dealloc __P((vm_object_t)); int swap_pager_getpages __P((vm_object_t, vm_page_t *, int, int)); int swap_pager_putpages __P((vm_object_t, vm_page_t *, int, boolean_t, int *)); -boolean_t swap_pager_haspage __P((vm_object_t, vm_offset_t, int *, int *)); void swap_pager_sync __P((void)); -void swap_pager_iodone __P((struct buf *)); int swap_pager_swp_alloc __P((vm_object_t, int)); void swap_pager_copy __P((vm_object_t, vm_offset_t, vm_object_t, vm_offset_t, vm_offset_t)); void swap_pager_freespace __P((vm_object_t, vm_offset_t, vm_offset_t));