Avoid EXTERN use.

This commit is contained in:
christos 2004-06-06 05:45:04 +00:00
parent 390d3859bf
commit 543c223a3a
2 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: md.c,v 1.102 2004/05/15 21:53:29 dsl Exp $ */
/* $NetBSD: md.c,v 1.103 2004/06/06 05:45:04 christos Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -70,6 +70,8 @@ static int md_read_bootcode(const char *, struct mbr_sector *);
static unsigned int get_bootmodel(void);
static char *md_bootxx_name(void);
const char *fdtype = "msdos";
int
md_get_info(void)
@ -298,7 +300,7 @@ md_post_newfs(void)
char bootxx[8192 + 4];
char *bootxx_filename;
static struct x86_boot_params boottype =
{sizeof boottype, 0, 10, 0, 9600, ""};
{sizeof boottype, 0, 10, 0, 9600, { '\0' }};
static int conmib[] = {CTL_MACHDEP, CPU_CONSDEV};
struct termios t;
dev_t condev;

View File

@ -1,4 +1,4 @@
/* $NetBSD: md.h,v 1.51 2004/05/15 21:53:29 dsl Exp $ */
/* $NetBSD: md.h,v 1.52 2004/06/06 05:45:04 christos Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@ -102,7 +102,7 @@
* Default fileystem type for floppy disks.
* On i386, that is msdos.
*/
EXTERN const char *fdtype INIT("msdos");
const char *fdtype;
#define _PATH_MBR DEFAULT_BOOTDIR "/" DEFAULT_BOOTCODE
#define _PATH_BOOTSEL DEFAULT_BOOTDIR "/" DEFAULT_BOOTSELCODE