summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>1998-07-20 00:49:24 +0000
committerMarc Espie <espie@cvs.openbsd.org>1998-07-20 00:49:24 +0000
commit9b5f42d3cb353ee09c955ec2466e59612d16f066 (patch)
treea24941a9ec956a8613cc0dbd5ce14f05e697d2b1 /sys
parente0565f281b168884d6ccb98412264fc32dbb2c2d (diff)
typo & warnings make gcc unhappy.
Diffstat (limited to 'sys')
-rw-r--r--sys/adosfs/advnops.c4
-rw-r--r--sys/arch/amiga/amiga/conf.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/adosfs/advnops.c b/sys/adosfs/advnops.c
index cd6e5c6c2d0..1daac26acc6 100644
--- a/sys/adosfs/advnops.c
+++ b/sys/adosfs/advnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: advnops.c,v 1.11 1997/11/10 23:57:06 niklas Exp $ */
+/* $OpenBSD: advnops.c,v 1.12 1998/07/20 00:49:21 espie Exp $ */
/* $NetBSD: advnops.c,v 1.32 1996/10/13 02:52:09 christos Exp $ */
/*
@@ -700,10 +700,12 @@ int
adosfs_print(v)
void *v;
{
+#ifdef DIAGNOSTIC
struct vop_print_args /* {
struct vnode *a_vp;
} */ *ap = v;
struct anode *anp = VTOA(ap->a_vp);
+#endif
/* XXX Fill in more info here. */
printf("tag VT_ADOSFS\n");
diff --git a/sys/arch/amiga/amiga/conf.c b/sys/arch/amiga/amiga/conf.c
index 495ed3a2c7b..6c9cc58eaaa 100644
--- a/sys/arch/amiga/amiga/conf.c
+++ b/sys/arch/amiga/amiga/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.22 1998/07/07 06:55:56 deraadt Exp $ */
+/* $OpenBSD: conf.c,v 1.23 1998/07/20 00:49:23 espie Exp $ */
/* $NetBSD: conf.c,v 1.42 1997/01/07 11:35:03 mrg Exp $ */
/*-
@@ -264,9 +264,9 @@ chrtoblk(dev)
int blkmaj;
if (major(dev) >= nchrdev ||
- major(dev) > sizeof(chrtoblktbl)/sizeof(chrtoblktbl[0]))
+ major(dev) > sizeof(chrtoblktab)/sizeof(chrtoblktab[0]))
return (NODEV);
- blkmaj = chrtoblktbl[major(dev)];
+ blkmaj = chrtoblktab[major(dev)];
if (blkmaj == NODEV)
return (NODEV);
return (makedev(blkmaj, minor(dev)));