diff --git a/sys/ddb/db_sym.c b/sys/ddb/db_sym.c
index 0c07bd8f7844..5588c77671b8 100644
--- a/sys/ddb/db_sym.c
+++ b/sys/ddb/db_sym.c
@@ -23,7 +23,7 @@
  * any improvements or extensions that they make and grant Carnegie the
  * rights to redistribute these changes.
  *
- *	$Id: db_sym.c,v 1.4 1994/01/03 07:54:10 davidg Exp $
+ *	$Id: db_sym.c,v 1.5 1994/08/13 03:49:23 wollman Exp $
  */
 
 /*
@@ -315,10 +315,10 @@ db_printsym(off, strategy)
 
 boolean_t
 db_line_at_pc( sym, filename, linenum, pc)
-	int sym;
-	int filename;
-	int linenum;
-	int pc;
+	db_sym_t	sym;
+	char		**filename;
+	int		*linenum;
+	db_expr_t	pc;
 {
 	return X_db_line_at_pc( db_last_symtab, sym, filename, linenum, pc);
 }
diff --git a/sys/ddb/db_sym.h b/sys/ddb/db_sym.h
index d1090cf7123f..9b610c591e5a 100644
--- a/sys/ddb/db_sym.h
+++ b/sys/ddb/db_sym.h
@@ -23,7 +23,7 @@
  * any improvements or extensions that they make and grant Carnegie the
  * rights to redistribute these changes.
  *
- *	$Id: db_sym.h,v 1.3 1993/11/07 17:39:25 wollman Exp $
+ *	$Id: db_sym.h,v 1.4 1994/08/18 22:34:26 wollman Exp $
  */
 
 #ifndef _DDB_DB_SYM_H_
@@ -96,7 +96,7 @@ extern int	db_eqname(/* char*, char*, char */);
 
 extern void	db_printsym(/* db_expr_t, db_strategy_t */);
 					/* print closest symbol to a value */
-extern boolean_t db_line_at_pc(int, int, int, int);
+extern boolean_t db_line_at_pc(db_sym_t, char **, int *, db_expr_t);
 extern int X_db_sym_nymargs(db_symtab_t *, db_sym_t, int *, char **);
 
 #endif /* _DDB_DB_SYM_H_ */
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index d9849d11e884..eae66d685e87 100644
--- a/sys/dev/syscons/syscons.c
+++ b/sys/dev/syscons/syscons.c
@@ -34,7 +34,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- *	$Id: syscons.c,v 1.50 1994/08/17 08:51:59 sos Exp $
+ *	$Id: syscons.c,v 1.51 1994/08/17 19:32:23 sos Exp $
  */
 
 #include "sc.h"
@@ -198,9 +198,6 @@ static	int		scrn_saver = 0;		/* screen saver routine */
 static	long 		scrn_time_stamp;
 static  u_char		scr_map[256];
 
-extern	int hz;
-extern	struct timeval time;
-
 /* function prototypes */
 int pcprobe(struct isa_device *dev);
 int pcattach(struct isa_device *dev);
diff --git a/sys/fs/cd9660/cd9660_vfsops.c b/sys/fs/cd9660/cd9660_vfsops.c
index a4aeaaf5784a..90e26796876b 100644
--- a/sys/fs/cd9660/cd9660_vfsops.c
+++ b/sys/fs/cd9660/cd9660_vfsops.c
@@ -36,7 +36,7 @@
  * SUCH DAMAGE.
  *
  *	@(#)cd9660_vfsops.c	8.3 (Berkeley) 1/31/94
- * $Id$
+ * $Id: cd9660_vfsops.c,v 1.3 1994/08/02 07:41:33 davidg Exp $
  */
 
 #include <sys/param.h>
@@ -58,8 +58,6 @@
 #include <isofs/cd9660/iso.h>
 #include <isofs/cd9660/cd9660_node.h>
 
-extern int enodev ();
-
 struct vfsops cd9660_vfsops = {
 	cd9660_mount,
 	cd9660_start,
@@ -87,7 +85,6 @@ int
 cd9660_mountroot()
 {
 	register struct mount *mp;
-	extern struct vnode *rootvp;
 	struct proc *p = curproc;	/* XXX */
 	struct iso_mnt *imp;
 	register struct fs *fs;
@@ -229,7 +226,6 @@ iso_mountfs(devvp, mp, p, argp)
 	int error = EINVAL, i, size;
 	int needclose = 0;
 	int ronly = (mp->mnt_flag & MNT_RDONLY) != 0;
-	extern struct vnode *rootvp;
 	int j;
 	int iso_bsize;
 	int iso_blknum;
diff --git a/sys/fs/nullfs/null_vnops.c b/sys/fs/nullfs/null_vnops.c
index 0fed55342f65..d6e0cd7f7a75 100644
--- a/sys/fs/nullfs/null_vnops.c
+++ b/sys/fs/nullfs/null_vnops.c
@@ -35,7 +35,7 @@
  *
  *	@(#)null_vnops.c	8.1 (Berkeley) 6/10/93
  *
- * $Id$
+ * $Id: null_vnops.c,v 1.2 1994/08/02 07:45:06 davidg Exp $
  */
 
 /*
@@ -207,7 +207,6 @@ null_bypass(ap)
 		<other random data follows, presumably>
 	} */ *ap;
 {
-	extern int (**null_vnodeop_p)();  /* not extern, really "forward" */
 	register struct vnode **this_vp_p;
 	int error;
 	struct vnode *old_vps[VDESC_MAX_VPS];
diff --git a/sys/fs/portalfs/portal_vnops.c b/sys/fs/portalfs/portal_vnops.c
index c19e8152099f..b3c3694d4a2e 100644
--- a/sys/fs/portalfs/portal_vnops.c
+++ b/sys/fs/portalfs/portal_vnops.c
@@ -35,7 +35,7 @@
  *
  *	@(#)portal_vnops.c	8.8 (Berkeley) 1/21/94
  *
- * $Id: portal_vnops.c,v 1.4 1992/05/30 10:05:24 jsp Exp jsp $
+ * $Id: portal_vnops.c,v 1.2 1994/05/25 09:08:21 rgrimes Exp $
  */
 
 /*
@@ -431,7 +431,8 @@ portal_getattr(ap)
 	vap->va_fsid = vp->v_mount->mnt_stat.f_fsid.val[0];
 	vap->va_size = DEV_BSIZE;
 	vap->va_blocksize = DEV_BSIZE;
-	microtime(&vap->va_atime);
+	microtime((struct timeval *)&vap->va_atime);
+	TIMEVAL_TO_TIMESPEC((struct timeval *)&vap->va_atime, (struct timespec *)&vap->va_atime);
 	vap->va_mtime = vap->va_atime;
 	vap->va_ctime = vap->va_ctime;
 	vap->va_gen = 0;
diff --git a/sys/fs/umapfs/umap_vnops.c b/sys/fs/umapfs/umap_vnops.c
index cda81532453d..957ee632a680 100644
--- a/sys/fs/umapfs/umap_vnops.c
+++ b/sys/fs/umapfs/umap_vnops.c
@@ -34,7 +34,7 @@
  * SUCH DAMAGE.
  *
  *	@(#)umap_vnops.c	8.3 (Berkeley) 1/5/94
- * $Id$
+ * $Id: umap_vnops.c,v 1.3 1994/08/02 07:45:37 davidg Exp $
  */
 
 /*
@@ -66,7 +66,6 @@ umap_bypass(ap)
 		<other random data follows, presumably>
 	} */ *ap;
 {
-	extern int (**umap_vnodeop_p)();  /* not extern, really "forward" */
 	struct ucred **credpp = 0, *credp = 0;
 	struct ucred *savecredp = 0, *savecompcredp = 0;
 	struct ucred *compcredp = 0;
diff --git a/sys/i386/eisa/aha1742.c b/sys/i386/eisa/aha1742.c
index 5ac65b85d5cb..ac201f8cb4dd 100644
--- a/sys/i386/eisa/aha1742.c
+++ b/sys/i386/eisa/aha1742.c
@@ -14,7 +14,7 @@
  *
  * commenced: Sun Sep 27 18:14:01 PDT 1992
  *
- *      $Id: aha1742.c,v 1.16 1994/05/25 08:58:13 rgrimes Exp $
+ *      $Id: aha1742.c,v 1.17 1994/08/13 03:49:54 wollman Exp $
  */
 
 #include <sys/types.h>
@@ -51,10 +51,6 @@ int     Debugger();
 #define NAHB 1
 #endif /* kernel */
 
-#ifndef NetBSD
-typedef timeout_func_t timeout_t;
-#endif
-
 typedef unsigned long int physaddr;
 #include <sys/kernel.h>
 
@@ -274,7 +270,7 @@ int     ahb_attach();
 int	ahb_init __P((int unit));
 int     ahbintr();
 int32   ahb_scsi_cmd();
-void    ahb_timeout(caddr_t);
+void    ahb_timeout	__P((caddr_t));
 void	ahb_done();
 struct	ecb *cheat;
 void	ahb_free_ecb();
@@ -628,7 +624,7 @@ ahbintr(unit)
 			if ((ahb_debug & AHB_SHOWECBS) && ecb)
 				printf("<int ecb(%x)>", ecb);
 #endif /*AHBDEBUG */
-			untimeout((timeout_t)ahb_timeout, (caddr_t)ecb);
+			untimeout((timeout_func_t)ahb_timeout, (caddr_t)ecb);
 			ahb_done(unit, ecb, ((stat == AHB_ECB_OK) ? SUCCESS : FAIL));
 		}
 	}
@@ -993,7 +989,7 @@ ahb_scsi_cmd(xs)
 		if (!(flags & SCSI_NOMASK)) {
 			s = splbio();
 			ahb_send_immed(unit, xs->sc_link->target, AHB_TARG_RESET);
-			timeout((timeout_t)ahb_timeout, (caddr_t)ecb, (xs->timeout * hz) / 1000);
+			timeout((timeout_func_t)ahb_timeout, (caddr_t)ecb, (xs->timeout * hz) / 1000);
 			splx(s);
 			return (SUCCESSFULLY_QUEUED);
 		} else {
@@ -1122,7 +1118,7 @@ ahb_scsi_cmd(xs)
 	if (!(flags & SCSI_NOMASK)) {
 		s = splbio();
 		ahb_send_mbox(unit, OP_START_ECB, xs->sc_link->target, ecb);
-		timeout((timeout_t)ahb_timeout, (caddr_t)ecb, (xs->timeout * hz) / 1000);
+		timeout((timeout_func_t)ahb_timeout, (caddr_t)ecb, (xs->timeout * hz) / 1000);
 		splx(s);
 		SC_DEBUG(xs->sc_link, SDEV_DB3, ("cmd_sent\n"));
 		return (SUCCESSFULLY_QUEUED);
@@ -1199,7 +1195,7 @@ ahb_timeout(caddr_t arg1)
 		printf("\n");
 		ahb_send_mbox(unit, OP_ABORT_ECB, ecb->xs->sc_link->target, ecb);
 		/* 2 secs for the abort */
-		timeout((timeout_t)ahb_timeout, (caddr_t)ecb, 2 * hz);
+		timeout((timeout_func_t)ahb_timeout, (caddr_t)ecb, 2 * hz);
 		ecb->flags = ECB_ABORTED;
 	}
 	splx(s);
diff --git a/sys/i386/isa/aha1542.c b/sys/i386/isa/aha1542.c
index 2e5c8edb1ef9..d9c91cbd0ae6 100644
--- a/sys/i386/isa/aha1542.c
+++ b/sys/i386/isa/aha1542.c
@@ -12,7 +12,7 @@
  * on the understanding that TFS is not responsible for the correct
  * functioning of this software in any circumstances.
  *
- *      $Id: aha1542.c,v 1.30 1994/08/18 23:36:37 phk Exp $
+ *      $Id: aha1542.c,v 1.31 1994/08/19 21:02:05 ats Exp $
  */
 
 /*
@@ -43,10 +43,6 @@
 #define NAHA 1
 #endif /*KERNEL */
 
-#if !defined(NetBSD) && !defined(__FreeBSD__)
-typedef timeout_func_t timeout_t;
-#endif
-
 /************************** board definitions *******************************/
 
 /*
@@ -688,7 +684,7 @@ ahaintr(unit)
 #endif /*AHADEBUG */
 			}
 			if (ccb) {
-				untimeout((timeout_t)aha_timeout, (caddr_t)ccb);
+				untimeout((timeout_func_t)aha_timeout, (caddr_t)ccb);
 				aha_done(unit, ccb);
 			}
 			aha->aha_mbx.mbi[i].stat = AHA_MBI_FREE;
@@ -1220,7 +1216,7 @@ aha_scsi_cmd(xs)
 		bcopy(xs->cmd, &ccb->scsi_cmd, ccb->scsi_cmd_length);
 	if (!(flags & SCSI_NOMASK)) {
 		s = splbio();	/* stop instant timeouts */
-		timeout((timeout_t)aha_timeout, (caddr_t)ccb, (xs->timeout * hz) / 1000);
+		timeout((timeout_func_t)aha_timeout, (caddr_t)ccb, (xs->timeout * hz) / 1000);
 		aha_startmbx(ccb->mbx);
 		/*
 		 * Usually return SUCCESSFULLY QUEUED
@@ -1281,7 +1277,7 @@ aha_poll(unit, xs, ccb)
 		 * because we are polling,
 		 * take out the timeout entry aha_timeout made
 		 */
-		untimeout((timeout_t)aha_timeout, (caddr_t)ccb);
+		untimeout((timeout_func_t)aha_timeout, (caddr_t)ccb);
 		count = 2000;
 		while (count) {
 			/*
@@ -1475,7 +1471,7 @@ aha_timeout(caddr_t arg1)
 		printf("\n");
 		aha_abortmbx(ccb->mbx);
 		/* 4 secs for the abort */
-		timeout((timeout_t)aha_timeout, (caddr_t)ccb, 4 * hz);
+		timeout((timeout_func_t)aha_timeout, (caddr_t)ccb, 4 * hz);
 		ccb->flags = CCB_ABORTED;
 	} splx(s);
 }
diff --git a/sys/i386/isa/aha1742.c b/sys/i386/isa/aha1742.c
index 5ac65b85d5cb..ac201f8cb4dd 100644
--- a/sys/i386/isa/aha1742.c
+++ b/sys/i386/isa/aha1742.c
@@ -14,7 +14,7 @@
  *
  * commenced: Sun Sep 27 18:14:01 PDT 1992
  *
- *      $Id: aha1742.c,v 1.16 1994/05/25 08:58:13 rgrimes Exp $
+ *      $Id: aha1742.c,v 1.17 1994/08/13 03:49:54 wollman Exp $
  */
 
 #include <sys/types.h>
@@ -51,10 +51,6 @@ int     Debugger();
 #define NAHB 1
 #endif /* kernel */
 
-#ifndef NetBSD
-typedef timeout_func_t timeout_t;
-#endif
-
 typedef unsigned long int physaddr;
 #include <sys/kernel.h>
 
@@ -274,7 +270,7 @@ int     ahb_attach();
 int	ahb_init __P((int unit));
 int     ahbintr();
 int32   ahb_scsi_cmd();
-void    ahb_timeout(caddr_t);
+void    ahb_timeout	__P((caddr_t));
 void	ahb_done();
 struct	ecb *cheat;
 void	ahb_free_ecb();
@@ -628,7 +624,7 @@ ahbintr(unit)
 			if ((ahb_debug & AHB_SHOWECBS) && ecb)
 				printf("<int ecb(%x)>", ecb);
 #endif /*AHBDEBUG */
-			untimeout((timeout_t)ahb_timeout, (caddr_t)ecb);
+			untimeout((timeout_func_t)ahb_timeout, (caddr_t)ecb);
 			ahb_done(unit, ecb, ((stat == AHB_ECB_OK) ? SUCCESS : FAIL));
 		}
 	}
@@ -993,7 +989,7 @@ ahb_scsi_cmd(xs)
 		if (!(flags & SCSI_NOMASK)) {
 			s = splbio();
 			ahb_send_immed(unit, xs->sc_link->target, AHB_TARG_RESET);
-			timeout((timeout_t)ahb_timeout, (caddr_t)ecb, (xs->timeout * hz) / 1000);
+			timeout((timeout_func_t)ahb_timeout, (caddr_t)ecb, (xs->timeout * hz) / 1000);
 			splx(s);
 			return (SUCCESSFULLY_QUEUED);
 		} else {
@@ -1122,7 +1118,7 @@ ahb_scsi_cmd(xs)
 	if (!(flags & SCSI_NOMASK)) {
 		s = splbio();
 		ahb_send_mbox(unit, OP_START_ECB, xs->sc_link->target, ecb);
-		timeout((timeout_t)ahb_timeout, (caddr_t)ecb, (xs->timeout * hz) / 1000);
+		timeout((timeout_func_t)ahb_timeout, (caddr_t)ecb, (xs->timeout * hz) / 1000);
 		splx(s);
 		SC_DEBUG(xs->sc_link, SDEV_DB3, ("cmd_sent\n"));
 		return (SUCCESSFULLY_QUEUED);
@@ -1199,7 +1195,7 @@ ahb_timeout(caddr_t arg1)
 		printf("\n");
 		ahb_send_mbox(unit, OP_ABORT_ECB, ecb->xs->sc_link->target, ecb);
 		/* 2 secs for the abort */
-		timeout((timeout_t)ahb_timeout, (caddr_t)ecb, 2 * hz);
+		timeout((timeout_func_t)ahb_timeout, (caddr_t)ecb, 2 * hz);
 		ecb->flags = ECB_ABORTED;
 	}
 	splx(s);
diff --git a/sys/i386/isa/if_le.c b/sys/i386/isa/if_le.c
index ec84fca82af3..00f6d0379f8f 100644
--- a/sys/i386/isa/if_le.c
+++ b/sys/i386/isa/if_le.c
@@ -21,9 +21,12 @@
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *
- * $Id: if_le.c,v 1.1 1994/08/12 06:51:10 davidg Exp $
+ * $Id: if_le.c,v 1.2 1994/08/12 11:42:37 davidg Exp $
  *
  * $Log: if_le.c,v $
+ * Revision 1.2  1994/08/12  11:42:37  davidg
+ * Added conditionals to make this compile cleanly in FreeBSD 2.0.
+ *
  * Revision 1.1  1994/08/12  06:51:10  davidg
  * New ethernet device driver from Matt Thomas:
  *
@@ -783,7 +786,6 @@ le_multi_op(
 #define LEMAC_32K_MODE(mbase)	(((mbase) >= 0x14) && ((mbase) <= 0x1F))
 #define LEMAC_2K_MODE(mbase)	( (mbase) >= 0x40)
 
-static int  lemac_probe(le_softc_t *sc, const le_board_t *bd, int *msize);
 static void lemac_init(int unit);
 static void lemac_start(struct ifnet *ifp);
 #if __FreeBSD__ > 1
@@ -800,10 +802,10 @@ static int  lemac_read_eeprom(le_softc_t *sc);
 static void lemac_init_adapmem(le_softc_t *sc);
 
 static const le_mcbits_t lemac_allmulti_mctbl[16] =  {
-    0xFFFFFFFFU, 0xFFFFFFFFU, 0xFFFFFFFFU, 0xFFFFFFFFU,
-    0xFFFFFFFFU, 0xFFFFFFFFU, 0xFFFFFFFFU, 0xFFFFFFFFU,
-    0xFFFFFFFFU, 0xFFFFFFFFU, 0xFFFFFFFFU, 0xFFFFFFFFU,
-    0xFFFFFFFFU, 0xFFFFFFFFU, 0xFFFFFFFFU, 0xFFFFFFFFU,
+    0xFFFFU, 0xFFFFU, 0xFFFFU, 0xFFFFU,
+    0xFFFFU, 0xFFFFU, 0xFFFFU, 0xFFFFU,
+    0xFFFFU, 0xFFFFU, 0xFFFFU, 0xFFFFU,
+    0xFFFFU, 0xFFFFU, 0xFFFFU, 0xFFFFU,
 };
 /*
  * An IRQ mapping table.  Less space than switch statement.
@@ -1318,7 +1320,6 @@ lemac_init_adapmem(
  * Start of DEPCA (DE200/DE201/DE202/DE422 etal) support.
  *
  */
-static int  depca_probe(le_softc_t *sc, const le_board_t *bd, int *msize);
 static void depca_intr(le_softc_t *sc);
 static int  lance_init_adapmem(le_softc_t *sc);
 static int  lance_init_ring(le_softc_t *sc, ln_ring_t *rp, lance_ring_t *ri,
diff --git a/sys/i386/isa/isa_device.h b/sys/i386/isa/isa_device.h
index 47dd12d96066..f7bd8db8197d 100644
--- a/sys/i386/isa/isa_device.h
+++ b/sys/i386/isa/isa_device.h
@@ -31,7 +31,7 @@
  * SUCH DAMAGE.
  *
  *	from: @(#)isa_device.h	7.1 (Berkeley) 5/9/91
- *	$Id: isa_device.h,v 1.5 1994/01/04 20:06:30 nate Exp $
+ *	$Id: isa_device.h,v 1.6 1994/08/18 05:09:33 davidg Exp $
  */
 
 #ifndef _I386_ISA_ISA_DEVICE_H_
@@ -93,10 +93,6 @@ struct isa_driver {
 extern char eintrnames[];	/* end of intrnames[] */
 extern u_long intrcnt[];	/* counts for for each device and stray */
 extern char intrnames[];	/* string table containing device names */
-u_long	*intr_countp[];		/* indirectors into intrcnt[] */
-inthand2_t *intr_handler[];	/* C entry points of intr handlers */
-u_int	intr_mask[];		/* sets of intrs masked during handling of 1 */
-int	intr_unit[];		/* cookies to pass to intr handlers */
 
 extern struct isa_device isa_devtab_bio[], isa_devtab_tty[], isa_devtab_net[],
 		isa_devtab_null[], isa_biotab_wdc[], isa_biotab_fdc[];
diff --git a/sys/i386/isa/syscons.c b/sys/i386/isa/syscons.c
index d9849d11e884..eae66d685e87 100644
--- a/sys/i386/isa/syscons.c
+++ b/sys/i386/isa/syscons.c
@@ -34,7 +34,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- *	$Id: syscons.c,v 1.50 1994/08/17 08:51:59 sos Exp $
+ *	$Id: syscons.c,v 1.51 1994/08/17 19:32:23 sos Exp $
  */
 
 #include "sc.h"
@@ -198,9 +198,6 @@ static	int		scrn_saver = 0;		/* screen saver routine */
 static	long 		scrn_time_stamp;
 static  u_char		scr_map[256];
 
-extern	int hz;
-extern	struct timeval time;
-
 /* function prototypes */
 int pcprobe(struct isa_device *dev);
 int pcattach(struct isa_device *dev);
diff --git a/sys/i386/isa/wt.c b/sys/i386/isa/wt.c
index 5b287a4bdb09..3dd7b601ebc4 100644
--- a/sys/i386/isa/wt.c
+++ b/sys/i386/isa/wt.c
@@ -19,7 +19,7 @@
  * the original CMU copyright notice.
  *
  * Version 1.3, Thu Nov 11 12:09:13 MSK 1993
- * $Id: wt.c,v 1.7 1994/05/27 04:02:10 rgrimes Exp $
+ * $Id: wt.c,v 1.8 1994/08/13 03:50:20 wollman Exp $
  *
  */
 
@@ -166,9 +166,6 @@ static int wtreadfm (wtinfo_t *t);
 static int wtwritefm (wtinfo_t *t);
 static int wtpoll (wtinfo_t *t, int mask, int bits);
 
-/* XXX */
-extern void DELAY (int usec);
-
 /*
  * Probe for the presence of the device.
  */
diff --git a/sys/isa/syscons.c b/sys/isa/syscons.c
index d9849d11e884..eae66d685e87 100644
--- a/sys/isa/syscons.c
+++ b/sys/isa/syscons.c
@@ -34,7 +34,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- *	$Id: syscons.c,v 1.50 1994/08/17 08:51:59 sos Exp $
+ *	$Id: syscons.c,v 1.51 1994/08/17 19:32:23 sos Exp $
  */
 
 #include "sc.h"
@@ -198,9 +198,6 @@ static	int		scrn_saver = 0;		/* screen saver routine */
 static	long 		scrn_time_stamp;
 static  u_char		scr_map[256];
 
-extern	int hz;
-extern	struct timeval time;
-
 /* function prototypes */
 int pcprobe(struct isa_device *dev);
 int pcattach(struct isa_device *dev);
diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c
index a4aeaaf5784a..90e26796876b 100644
--- a/sys/isofs/cd9660/cd9660_vfsops.c
+++ b/sys/isofs/cd9660/cd9660_vfsops.c
@@ -36,7 +36,7 @@
  * SUCH DAMAGE.
  *
  *	@(#)cd9660_vfsops.c	8.3 (Berkeley) 1/31/94
- * $Id$
+ * $Id: cd9660_vfsops.c,v 1.3 1994/08/02 07:41:33 davidg Exp $
  */
 
 #include <sys/param.h>
@@ -58,8 +58,6 @@
 #include <isofs/cd9660/iso.h>
 #include <isofs/cd9660/cd9660_node.h>
 
-extern int enodev ();
-
 struct vfsops cd9660_vfsops = {
 	cd9660_mount,
 	cd9660_start,
@@ -87,7 +85,6 @@ int
 cd9660_mountroot()
 {
 	register struct mount *mp;
-	extern struct vnode *rootvp;
 	struct proc *p = curproc;	/* XXX */
 	struct iso_mnt *imp;
 	register struct fs *fs;
@@ -229,7 +226,6 @@ iso_mountfs(devvp, mp, p, argp)
 	int error = EINVAL, i, size;
 	int needclose = 0;
 	int ronly = (mp->mnt_flag & MNT_RDONLY) != 0;
-	extern struct vnode *rootvp;
 	int j;
 	int iso_bsize;
 	int iso_blknum;
diff --git a/sys/kern/kern_lkm.c b/sys/kern/kern_lkm.c
index c546da4001a4..ca86c7b1980f 100644
--- a/sys/kern/kern_lkm.c
+++ b/sys/kern/kern_lkm.c
@@ -630,7 +630,6 @@ _lkm_dev(lkmtp, cmd)
 	struct lkm_dev *args = lkmtp->private.lkm_dev;
 	int i;
 	int err = 0;
-	extern int nblkdev, nchrdev;	/* from conf.c */
 
 	switch(cmd) {
 	case LKM_E_LOAD:
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c
index 50c48ad3d9ad..a6e9469d9489 100644
--- a/sys/kern/vfs_lookup.c
+++ b/sys/kern/vfs_lookup.c
@@ -36,7 +36,7 @@
  * SUCH DAMAGE.
  *
  *	@(#)vfs_lookup.c	8.4 (Berkeley) 2/16/94
- * $Id: vfs_lookup.c,v 1.2 1994/08/02 07:43:25 davidg Exp $
+ * $Id: vfs_lookup.c,v 1.3 1994/08/18 22:35:08 wollman Exp $
  */
 
 #include <sys/param.h>
@@ -106,10 +106,10 @@ namei(ndp)
 		MALLOC(cnp->cn_pnbuf, caddr_t, MAXPATHLEN, M_NAMEI, M_WAITOK);
 	if (ndp->ni_segflg == UIO_SYSSPACE)
 		error = copystr(ndp->ni_dirp, cnp->cn_pnbuf,
-			    MAXPATHLEN, &ndp->ni_pathlen);
+			    MAXPATHLEN, (u_int *)&ndp->ni_pathlen);
 	else
 		error = copyinstr(ndp->ni_dirp, cnp->cn_pnbuf,
-			    MAXPATHLEN, &ndp->ni_pathlen);
+			    MAXPATHLEN, (u_int *)&ndp->ni_pathlen);
 	if (error) {
 		free(cnp->cn_pnbuf, M_NAMEI);
 		ndp->ni_vp = NULL;
diff --git a/sys/miscfs/nullfs/null_vnops.c b/sys/miscfs/nullfs/null_vnops.c
index 0fed55342f65..d6e0cd7f7a75 100644
--- a/sys/miscfs/nullfs/null_vnops.c
+++ b/sys/miscfs/nullfs/null_vnops.c
@@ -35,7 +35,7 @@
  *
  *	@(#)null_vnops.c	8.1 (Berkeley) 6/10/93
  *
- * $Id$
+ * $Id: null_vnops.c,v 1.2 1994/08/02 07:45:06 davidg Exp $
  */
 
 /*
@@ -207,7 +207,6 @@ null_bypass(ap)
 		<other random data follows, presumably>
 	} */ *ap;
 {
-	extern int (**null_vnodeop_p)();  /* not extern, really "forward" */
 	register struct vnode **this_vp_p;
 	int error;
 	struct vnode *old_vps[VDESC_MAX_VPS];
diff --git a/sys/miscfs/portal/portal_vnops.c b/sys/miscfs/portal/portal_vnops.c
index c19e8152099f..b3c3694d4a2e 100644
--- a/sys/miscfs/portal/portal_vnops.c
+++ b/sys/miscfs/portal/portal_vnops.c
@@ -35,7 +35,7 @@
  *
  *	@(#)portal_vnops.c	8.8 (Berkeley) 1/21/94
  *
- * $Id: portal_vnops.c,v 1.4 1992/05/30 10:05:24 jsp Exp jsp $
+ * $Id: portal_vnops.c,v 1.2 1994/05/25 09:08:21 rgrimes Exp $
  */
 
 /*
@@ -431,7 +431,8 @@ portal_getattr(ap)
 	vap->va_fsid = vp->v_mount->mnt_stat.f_fsid.val[0];
 	vap->va_size = DEV_BSIZE;
 	vap->va_blocksize = DEV_BSIZE;
-	microtime(&vap->va_atime);
+	microtime((struct timeval *)&vap->va_atime);
+	TIMEVAL_TO_TIMESPEC((struct timeval *)&vap->va_atime, (struct timespec *)&vap->va_atime);
 	vap->va_mtime = vap->va_atime;
 	vap->va_ctime = vap->va_ctime;
 	vap->va_gen = 0;
diff --git a/sys/miscfs/umapfs/umap_vnops.c b/sys/miscfs/umapfs/umap_vnops.c
index cda81532453d..957ee632a680 100644
--- a/sys/miscfs/umapfs/umap_vnops.c
+++ b/sys/miscfs/umapfs/umap_vnops.c
@@ -34,7 +34,7 @@
  * SUCH DAMAGE.
  *
  *	@(#)umap_vnops.c	8.3 (Berkeley) 1/5/94
- * $Id$
+ * $Id: umap_vnops.c,v 1.3 1994/08/02 07:45:37 davidg Exp $
  */
 
 /*
@@ -66,7 +66,6 @@ umap_bypass(ap)
 		<other random data follows, presumably>
 	} */ *ap;
 {
-	extern int (**umap_vnodeop_p)();  /* not extern, really "forward" */
 	struct ucred **credpp = 0, *credp = 0;
 	struct ucred *savecredp = 0, *savecompcredp = 0;
 	struct ucred *compcredp = 0;
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index 91c60f456964..97c529fd3253 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -37,7 +37,7 @@
  *
  *      @(#)bpf.c	8.2 (Berkeley) 3/28/94
  *
- * $Id$
+ * $Id: bpf.c,v 1.2 1994/08/02 07:45:51 davidg Exp $
  */
 
 #include "bpfilter.h"
@@ -121,17 +121,13 @@ bpfilterattach(n)
 }
 #endif
 
-static int	bpf_allocbufs __P((struct bpf_d *));
 static int	bpf_allocbufs __P((struct bpf_d *));
 static void	bpf_freed __P((struct bpf_d *));
-static void	bpf_freed __P((struct bpf_d *));
-static void	bpf_ifname __P((struct ifnet *, struct ifreq *));
 static void	bpf_ifname __P((struct ifnet *, struct ifreq *));
 static void	bpf_mcopy __P((const void *, void *, u_int));
 static int	bpf_movein __P((struct uio *, int,
 		    struct mbuf **, struct sockaddr *, int *));
 static int	bpf_setif __P((struct bpf_d *, struct ifreq *));
-static int	bpf_setif __P((struct bpf_d *, struct ifreq *));
 static inline void
 		bpf_wakeup __P((struct bpf_d *));
 static void	catchpacket __P((struct bpf_d *, u_char *, u_int,
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c
index cb7f009a9fba..8ca4900b3257 100644
--- a/sys/scsi/scsi_base.c
+++ b/sys/scsi/scsi_base.c
@@ -8,7 +8,7 @@
  * file.
  * 
  * Written by Julian Elischer (julian@dialix.oz.au)
- *      $Id: scsi_base.c,v 1.8 1994/05/19 22:21:05 jkh Exp $
+ *      $Id: scsi_base.c,v 1.9 1994/05/25 09:13:20 rgrimes Exp $
  */
 
 #define SPLSD splbio
@@ -42,8 +42,6 @@ int     Debugger();
 #endif	/* NDDB > 0 */
 #endif
 
-void	sc_print_addr __P((struct scsi_link *sc_link));
-
 struct scsi_xfer *next_free_xs;
 
 /*
diff --git a/sys/ufs/lfs/lfs_alloc.c b/sys/ufs/lfs/lfs_alloc.c
index 7e5e2a96ba13..848bb81a50db 100644
--- a/sys/ufs/lfs/lfs_alloc.c
+++ b/sys/ufs/lfs/lfs_alloc.c
@@ -31,7 +31,7 @@
  * SUCH DAMAGE.
  *
  *	@(#)lfs_alloc.c	8.4 (Berkeley) 1/4/94
- * $Id$
+ * $Id: lfs_alloc.c,v 1.2 1994/08/02 07:54:29 davidg Exp $
  */
 
 #include <sys/param.h>
@@ -157,7 +157,6 @@ lfs_vcreate(mp, ino, vpp)
 	ino_t ino;
 	struct vnode **vpp;
 {
-	extern int (**lfs_vnodeop_p)();
 	struct inode *ip;
 	struct ufsmount *ump;
 	int error, i;
diff --git a/sys/ufs/lfs/lfs_bio.c b/sys/ufs/lfs/lfs_bio.c
index 86d3e33dcca0..59a8d15ecf16 100644
--- a/sys/ufs/lfs/lfs_bio.c
+++ b/sys/ufs/lfs/lfs_bio.c
@@ -31,7 +31,7 @@
  * SUCH DAMAGE.
  *
  *	@(#)lfs_bio.c	8.4 (Berkeley) 12/30/93
- * $Id$
+ * $Id: lfs_bio.c,v 1.3 1994/08/02 07:54:31 davidg Exp $
  */
 
 #include <sys/param.h>
@@ -167,7 +167,6 @@ lfs_check(vp, blkno)
 	struct vnode *vp;
 	daddr_t blkno;
 {
-	extern int lfs_allclean_wakeup;
 	int error;
 
 	error = 0;
diff --git a/sys/ufs/lfs/lfs_segment.c b/sys/ufs/lfs/lfs_segment.c
index 986a2429710b..6cdf8f5b3505 100644
--- a/sys/ufs/lfs/lfs_segment.c
+++ b/sys/ufs/lfs/lfs_segment.c
@@ -31,7 +31,7 @@
  * SUCH DAMAGE.
  *
  *	@(#)lfs_segment.c	8.5 (Berkeley) 1/4/94
- * $Id$
+ * $Id: lfs_segment.c,v 1.3 1994/08/02 07:54:36 davidg Exp $
  */
 
 #include <sys/param.h>
@@ -84,8 +84,6 @@ void	 lfs_newseg __P((struct lfs *));
 void	 lfs_shellsort __P((struct buf **, daddr_t *, register int));
 void	 lfs_supercallback __P((struct buf *));
 void	 lfs_updatemeta __P((struct segment *));
-int	 lfs_vref __P((struct vnode *));
-void	 lfs_vunref __P((struct vnode *));
 void	 lfs_writefile __P((struct lfs *, struct segment *, struct vnode *));
 int	 lfs_writeinode __P((struct lfs *, struct segment *, struct inode *));
 int	 lfs_writeseg __P((struct lfs *, struct segment *));
diff --git a/sys/ufs/lfs/lfs_vfsops.c b/sys/ufs/lfs/lfs_vfsops.c
index 7181936b98c7..02986661496e 100644
--- a/sys/ufs/lfs/lfs_vfsops.c
+++ b/sys/ufs/lfs/lfs_vfsops.c
@@ -31,7 +31,7 @@
  * SUCH DAMAGE.
  *
  *	@(#)lfs_vfsops.c	8.7 (Berkeley) 4/16/94
- * $Id$
+ * $Id: lfs_vfsops.c,v 1.3 1994/08/02 07:54:38 davidg Exp $
  */
 
 #include <sys/param.h>
@@ -193,7 +193,6 @@ lfs_mountfs(devvp, mp, p)
 	struct mount *mp;
 	struct proc *p;
 {
-	extern struct vnode *rootvp;
 	register struct lfs *fs;
 	register struct ufsmount *ump;
 	struct vnode *vp;