Tue Mar 17 18:19:15 2009 UTC ()
Add some 'int' into function definitions where the K&R one didn't
specify a type.


(dsl)
diff -r1.22 -r1.23 src/sys/arch/alpha/a12/if_xb.c
diff -r1.6 -r1.7 src/sys/arch/vax/boot/boot/ctu.c
diff -r1.8 -r1.9 src/sys/arch/vax/boot/boot/mfm.c
diff -r1.7 -r1.8 src/sys/arch/vax/boot/boot/tmscp.c
diff -r1.47 -r1.48 src/sys/dev/isa/if_hp.c

cvs diff -r1.22 -r1.23 src/sys/arch/alpha/a12/Attic/if_xb.c (expand / switch to context diff)
--- src/sys/arch/alpha/a12/Attic/if_xb.c 2009/03/14 21:04:01 1.22
+++ src/sys/arch/alpha/a12/Attic/if_xb.c 2009/03/17 18:19:15 1.23
@@ -1,4 +1,4 @@
-/* $NetBSD: if_xb.c,v 1.22 2009/03/14 21:04:01 dsl Exp $ */
+/* $NetBSD: if_xb.c,v 1.23 2009/03/17 18:19:15 dsl Exp $ */
 
 /* [Notice revision 2.2]
  * Copyright (c) 1997, 1998 Avalon Computer Systems, Inc.
@@ -74,7 +74,7 @@
 #include "opt_avalon_a12.h"		/* Config options headers */
 #include <sys/cdefs.h>			/* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: if_xb.c,v 1.22 2009/03/14 21:04:01 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_xb.c,v 1.23 2009/03/17 18:19:15 dsl Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -226,7 +226,7 @@
 	xbfound = 1;
 	ccp = &xb_configuration;
 	xb_init_config(ccp, 1);
-	printf(": driver %s mtu %lu\n", "$Revision: 1.22 $", xbi.if_mtu);
+	printf(": driver %s mtu %lu\n", "$Revision: 1.23 $", xbi.if_mtu);
 }
 
 static void
@@ -705,7 +705,7 @@
  * Write an aligned block of switch words to the FIFO
  */
 Static void
-xb_mcrp_write(long *d, n, islast)
+xb_mcrp_write(long *d, int n, int islast)
 {
 	volatile long *xb_fifo = islast ? REGADDR(A12_FIFO_LWE) 
 					: REGADDR(A12_FIFO);

cvs diff -r1.6 -r1.7 src/sys/arch/vax/boot/boot/ctu.c (expand / switch to context diff)
--- src/sys/arch/vax/boot/boot/ctu.c 2009/03/14 21:04:16 1.6
+++ src/sys/arch/vax/boot/boot/ctu.c 2009/03/17 18:19:15 1.7
@@ -1,4 +1,4 @@
-/*	$NetBSD: ctu.c,v 1.6 2009/03/14 21:04:16 dsl Exp $ */
+/*	$NetBSD: ctu.c,v 1.7 2009/03/17 18:19:15 dsl Exp $ */
 /*
  * Copyright (c) 1996 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -66,7 +66,7 @@
 void	cturintr(void);
 
 int
-ctuopen(struct open_file *f, adapt, int ctlr, int unit, int part)
+ctuopen(struct open_file *f, int adapt, int ctlr, int unit, int part)
 {
 
 	tu_sc.sc_state = SC_INIT;

cvs diff -r1.8 -r1.9 src/sys/arch/vax/boot/boot/mfm.c (expand / switch to context diff)
--- src/sys/arch/vax/boot/boot/mfm.c 2009/03/14 21:04:16 1.8
+++ src/sys/arch/vax/boot/boot/mfm.c 2009/03/17 18:19:15 1.9
@@ -1,4 +1,4 @@
-/*	$NetBSD: mfm.c,v 1.8 2009/03/14 21:04:16 dsl Exp $	*/
+/*	$NetBSD: mfm.c,v 1.9 2009/03/17 18:19:15 dsl Exp $	*/
 /*
  * Copyright (c) 1996 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -359,7 +359,7 @@
 #endif
 
 int
-mfmopen(struct open_file *f, adapt, int ctlr, int unit, int part)
+mfmopen(struct open_file *f, int adapt, int ctlr, int unit, int part)
 {
 	char *msg;
 	struct disklabel *lp = &mfmlabel;

cvs diff -r1.7 -r1.8 src/sys/arch/vax/boot/boot/tmscp.c (expand / switch to context diff)
--- src/sys/arch/vax/boot/boot/tmscp.c 2009/03/14 21:04:16 1.7
+++ src/sys/arch/vax/boot/boot/tmscp.c 2009/03/17 18:19:15 1.8
@@ -1,4 +1,4 @@
-/*	$NetBSD: tmscp.c,v 1.7 2009/03/14 21:04:16 dsl Exp $ */
+/*	$NetBSD: tmscp.c,v 1.8 2009/03/17 18:19:15 dsl Exp $ */
 /*
  * Copyright (c) 1995 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -77,7 +77,7 @@
 static int curblock;
 
 
-tmscpopen(struct open_file *f, adapt, int ctlr, int unit, int part)
+tmscpopen(struct open_file *f, int adapt, int ctlr, int unit, int part)
 {
 	char *msg;
 	extern u_int tmsaddr;

cvs diff -r1.47 -r1.48 src/sys/dev/isa/Attic/if_hp.c (expand / switch to context diff)
--- src/sys/dev/isa/Attic/if_hp.c 2009/03/14 21:04:20 1.47
+++ src/sys/dev/isa/Attic/if_hp.c 2009/03/17 18:19:15 1.48
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_hp.c,v 1.47 2009/03/14 21:04:20 dsl Exp $	*/
+/*	$NetBSD: if_hp.c,v 1.48 2009/03/17 18:19:15 dsl Exp $	*/
 
 /* XXX THIS DRIVER IS BROKEN.  IT WILL NOT EVEN COMPILE. */
 
@@ -80,7 +80,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_hp.c,v 1.47 2009/03/14 21:04:20 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_hp.c,v 1.48 2009/03/17 18:19:15 dsl Exp $");
 
 #include "hp.h"
 #if NHP > 0
@@ -243,7 +243,7 @@
 /*
  * Fetch from onboard ROM/RAM
  */
-hpfetch(struct hp_softc *ns, void *up, ad, len)
+hpfetch(struct hp_softc *ns, void *up, int ad, int len)
 {
 	u_char  cmd;
 	int	hpc = ns->ns_port;
@@ -303,7 +303,7 @@
 /*
  * Put to onboard RAM
  */
-hpput(struct hp_softc *ns, void *up, ad, len)
+hpput(struct hp_softc *ns, void *up, int ad, int len)
 {
 	u_char  cmd;
 	int	hpc = ns->ns_port;