summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand/libsa
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-07-21 15:32:15 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-07-21 15:32:15 +0000
commitda9d907e7f2085b0c2a648b2d4346becc5646342 (patch)
treee0da4f4436c020362b3c6ee22f180f514531218a /sys/arch/i386/stand/libsa
parent63a48794a62dd4b809b68d7809a222b81bdff2b4 (diff)
add nbdevs for the size of table of block devises' names
remove bogus codeseg
Diffstat (limited to 'sys/arch/i386/stand/libsa')
-rw-r--r--sys/arch/i386/stand/libsa/dev_i386.c5
-rw-r--r--sys/arch/i386/stand/libsa/libsa.h6
2 files changed, 6 insertions, 5 deletions
diff --git a/sys/arch/i386/stand/libsa/dev_i386.c b/sys/arch/i386/stand/libsa/dev_i386.c
index 596c05455c2..85877c071c2 100644
--- a/sys/arch/i386/stand/libsa/dev_i386.c
+++ b/sys/arch/i386/stand/libsa/dev_i386.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev_i386.c,v 1.13 1997/07/17 23:00:27 mickey Exp $ */
+/* $OpenBSD: dev_i386.c,v 1.14 1997/07/21 15:32:14 mickey Exp $ */
/*
* Copyright (c) 1996 Michael Shalayeff
@@ -38,10 +38,11 @@
extern int debug;
/* XXX use slot for 'rd' for 'hd' pseudo-device */
-const char bdevs[19][4] = {
+const char bdevs[][4] = {
"wd", "", "fd", "wt", "sd", "st", "cd", "mcd",
"", "", "", "", "", "", "", "scd", "", "hd", "acd"
};
+const int nbdevs = NENTS(bdevs);
/* pass dev_t to the open routines */
int
diff --git a/sys/arch/i386/stand/libsa/libsa.h b/sys/arch/i386/stand/libsa/libsa.h
index c12cb8561d7..816fee5764c 100644
--- a/sys/arch/i386/stand/libsa/libsa.h
+++ b/sys/arch/i386/stand/libsa/libsa.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: libsa.h,v 1.8 1997/07/17 23:15:49 mickey Exp $ */
+/* $OpenBSD: libsa.h,v 1.9 1997/07/21 15:32:13 mickey Exp $ */
/*
* Copyright (c) 1996 Michael Shalayeff
@@ -41,10 +41,10 @@ void *alloca __P((size_t));
void machdep __P((void));
u_int apm_init __P((void));
-extern u_long codeseg;
extern int boothowto;
/* XXX filled in assumption that last file opened is kernel */
extern int bootdev;
extern u_int cnvmem, extmem;
extern struct apm_connect_info apminfo;
-extern const char bdevs[19][4];
+extern const char bdevs[][4];
+extern const int nbdevs;