From 1062c10a868b291bcfcaf2a5ea696b6bbb4acb37 Mon Sep 17 00:00:00 2001 From: bde Date: Tue, 16 Sep 1997 11:44:05 +0000 Subject: Fixed gratuitous ANSIisms. --- sys/kern/subr_log.c | 6 ++++-- sys/kern/subr_rlist.c | 8 +++++--- sys/kern/tty_pty.c | 6 ++++-- sys/kern/tty_snoop.c | 4 +++- sys/kern/tty_tty.c | 6 ++++-- sys/kern/uipc_domain.c | 11 ++++++++--- sys/kern/vfs_export.c | 24 ++++++++++++++++-------- sys/kern/vfs_subr.c | 24 ++++++++++++++++-------- 8 files changed, 60 insertions(+), 29 deletions(-) (limited to 'sys/kern') diff --git a/sys/kern/subr_log.c b/sys/kern/subr_log.c index 13807bf..490c602 100644 --- a/sys/kern/subr_log.c +++ b/sys/kern/subr_log.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)subr_log.c 8.1 (Berkeley) 6/10/93 - * $Id: subr_log.c,v 1.22 1997/03/24 11:52:25 bde Exp $ + * $Id: subr_log.c,v 1.23 1997/09/14 02:46:44 peter Exp $ */ /* @@ -247,8 +247,10 @@ static log_devsw_installed = 0; static void *log_devfs_token; #endif +static void log_drvinit __P((void *unused)); static void -log_drvinit(void *unused) +log_drvinit(unused) + void *unused; { dev_t dev; diff --git a/sys/kern/subr_rlist.c b/sys/kern/subr_rlist.c index dead1a6..3a61deb 100644 --- a/sys/kern/subr_rlist.c +++ b/sys/kern/subr_rlist.c @@ -54,7 +54,7 @@ * functioning of this software, nor does the author assume any responsibility * for damages incurred with its use. * - * $Id: subr_rlist.c,v 1.21 1997/02/22 09:39:18 peter Exp $ + * $Id: subr_rlist.c,v 1.22 1997/09/02 20:05:51 bde Exp $ */ #include @@ -73,6 +73,7 @@ static int rlist_count=0; static struct rlist *rlfree; static struct rlist *rlist_malloc __P((void)); +static inline void rlist_mfree __P((struct rlist *rl)); static struct rlist * rlist_malloc() @@ -102,8 +103,9 @@ rlist_malloc() return rl; } -inline static void -rlist_mfree( struct rlist *rl) +static inline void +rlist_mfree(rl) + struct rlist *rl; { rl->rl_next = rlfree; rlfree = rl; diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c index 34e1029..db06962 100644 --- a/sys/kern/tty_pty.c +++ b/sys/kern/tty_pty.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)tty_pty.c 8.4 (Berkeley) 2/20/95 - * $Id: tty_pty.c,v 1.45 1997/09/02 20:05:55 bde Exp $ + * $Id: tty_pty.c,v 1.46 1997/09/14 02:40:45 peter Exp $ */ /* @@ -790,8 +790,10 @@ ptyioctl(dev, cmd, data, flag, p) static ptc_devsw_installed = 0; +static void ptc_drvinit __P((void *unused)); static void -ptc_drvinit(void *unused) +ptc_drvinit(unused) + void *unused; { #ifdef DEVFS int i,j,k; diff --git a/sys/kern/tty_snoop.c b/sys/kern/tty_snoop.c index 9dbb3ea..42f23f3 100644 --- a/sys/kern/tty_snoop.c +++ b/sys/kern/tty_snoop.c @@ -519,8 +519,10 @@ static void *snp_devfs_token[NSNP]; #endif static snp_devsw_installed = 0; +static void snp_drvinit __P((void *unused)); static void -snp_drvinit(void *unused) +snp_drvinit(unused) + void *unused; { dev_t dev; #ifdef DEVFS diff --git a/sys/kern/tty_tty.c b/sys/kern/tty_tty.c index fb648b1..ee6172e 100644 --- a/sys/kern/tty_tty.c +++ b/sys/kern/tty_tty.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)tty_tty.c 8.2 (Berkeley) 9/23/93 - * $Id: tty_tty.c,v 1.17 1997/09/02 20:05:56 bde Exp $ + * $Id: tty_tty.c,v 1.18 1997/09/14 02:40:46 peter Exp $ */ /* @@ -179,8 +179,10 @@ static ctty_devsw_installed = 0; static void *ctty_devfs_token; #endif +static void ctty_drvinit __P((void *unused)); static void -ctty_drvinit(void *unused) +ctty_drvinit(unused) + void *unused; { dev_t dev; diff --git a/sys/kern/uipc_domain.c b/sys/kern/uipc_domain.c index c2ec35f..69d6bf8 100644 --- a/sys/kern/uipc_domain.c +++ b/sys/kern/uipc_domain.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)uipc_domain.c 8.2 (Berkeley) 10/18/93 - * $Id: uipc_domain.c,v 1.16 1997/02/22 09:39:27 peter Exp $ + * $Id: uipc_domain.c,v 1.17 1997/04/27 20:00:42 wollman Exp $ */ #include @@ -157,7 +157,9 @@ kludge_splx(udata) struct protosw * -pffindtype(int family, int type) +pffindtype(family, type) + int family; + int type; { register struct domain *dp; register struct protosw *pr; @@ -174,7 +176,10 @@ found: } struct protosw * -pffindproto(int family, int protocol, int type) +pffindproto(family, protocol, type) + int family; + int protocol; + int type; { register struct domain *dp; register struct protosw *pr; diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c index 8a2d1b5..810cc59 100644 --- a/sys/kern/vfs_export.c +++ b/sys/kern/vfs_export.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95 - * $Id: vfs_subr.c,v 1.102 1997/09/13 15:02:28 peter Exp $ + * $Id: vfs_subr.c,v 1.103 1997/09/14 02:49:06 peter Exp $ */ /* @@ -231,10 +231,10 @@ vfs_rootmountalloc(fstypename, devname, mpp) */ #ifdef notdef /* XXX JH */ int -lite2_vfs_mountroot(void) +lite2_vfs_mountroot() { struct vfsconf *vfsp; - extern int (*lite2_mountroot)(void); + extern int (*lite2_mountroot) __P((void)); int error; if (lite2_mountroot != NULL) @@ -1281,7 +1281,10 @@ loop: * Disassociate the underlying file system from a vnode. */ static void -vclean(struct vnode *vp, int flags, struct proc *p) +vclean(vp, flags, p) + struct vnode *vp; + int flags; + struct proc *p; { int active, irefed; vm_object_t object; @@ -1940,8 +1943,10 @@ vfs_unmountall() * Called by ufs_mount() to set up the lists of export addresses. */ static int -vfs_hang_addrlist(struct mount *mp, struct netexport *nep, - struct export_args *argp) +vfs_hang_addrlist(mp, nep, argp) + struct mount *mp; + struct netexport *nep; + struct export_args *argp; { register struct netcred *np; register struct radix_node_head *rnh; @@ -2011,7 +2016,9 @@ out: /* ARGSUSED */ static int -vfs_free_netcred(struct radix_node *rn, void *w) +vfs_free_netcred(rn, w) + struct radix_node *rn; + void *w; { register struct radix_node_head *rnh = (struct radix_node_head *) w; @@ -2024,7 +2031,8 @@ vfs_free_netcred(struct radix_node *rn, void *w) * Free the net address hash lists that are hanging off the mount points. */ static void -vfs_free_addrlist(struct netexport *nep) +vfs_free_addrlist(nep) + struct netexport *nep; { register int i; register struct radix_node_head *rnh; diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 8a2d1b5..810cc59 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)vfs_subr.c 8.31 (Berkeley) 5/26/95 - * $Id: vfs_subr.c,v 1.102 1997/09/13 15:02:28 peter Exp $ + * $Id: vfs_subr.c,v 1.103 1997/09/14 02:49:06 peter Exp $ */ /* @@ -231,10 +231,10 @@ vfs_rootmountalloc(fstypename, devname, mpp) */ #ifdef notdef /* XXX JH */ int -lite2_vfs_mountroot(void) +lite2_vfs_mountroot() { struct vfsconf *vfsp; - extern int (*lite2_mountroot)(void); + extern int (*lite2_mountroot) __P((void)); int error; if (lite2_mountroot != NULL) @@ -1281,7 +1281,10 @@ loop: * Disassociate the underlying file system from a vnode. */ static void -vclean(struct vnode *vp, int flags, struct proc *p) +vclean(vp, flags, p) + struct vnode *vp; + int flags; + struct proc *p; { int active, irefed; vm_object_t object; @@ -1940,8 +1943,10 @@ vfs_unmountall() * Called by ufs_mount() to set up the lists of export addresses. */ static int -vfs_hang_addrlist(struct mount *mp, struct netexport *nep, - struct export_args *argp) +vfs_hang_addrlist(mp, nep, argp) + struct mount *mp; + struct netexport *nep; + struct export_args *argp; { register struct netcred *np; register struct radix_node_head *rnh; @@ -2011,7 +2016,9 @@ out: /* ARGSUSED */ static int -vfs_free_netcred(struct radix_node *rn, void *w) +vfs_free_netcred(rn, w) + struct radix_node *rn; + void *w; { register struct radix_node_head *rnh = (struct radix_node_head *) w; @@ -2024,7 +2031,8 @@ vfs_free_netcred(struct radix_node *rn, void *w) * Free the net address hash lists that are hanging off the mount points. */ static void -vfs_free_addrlist(struct netexport *nep) +vfs_free_addrlist(nep) + struct netexport *nep; { register int i; register struct radix_node_head *rnh; -- cgit v1.1