Don't need to declare badaddr().

This commit is contained in:
tsubai 2000-01-23 14:57:10 +00:00
parent 3683ac880b
commit 83be2572a7
2 changed files with 7 additions and 14 deletions

View File

@ -1,4 +1,5 @@
/* $NetBSD: fb_probe.c,v 1.3 1999/02/15 04:36:34 hubertf Exp $ */ /* $NetBSD: fb_probe.c,v 1.4 2000/01/23 14:57:10 tsubai Exp $ */
/* /*
* Copyright (c) 1992, 1993 * Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved. * The Regents of the University of California. All rights reserved.
@ -39,21 +40,14 @@
* @(#)fb_probe.c 8.1 (Berkeley) 6/11/93 * @(#)fb_probe.c 8.1 (Berkeley) 6/11/93
*/ */
#ifdef IPC_MRX
#include "../../dev/framebuf.h"
#include "types.h"
#include "exec.h"
#include "romsw.h"
#else
#include <machine/framebuf.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/exec.h> #include <sys/exec.h>
#endif
#include <machine/autoconf.h>
#include <machine/framebuf.h>
#include <newsmips/dev/fbdefs.h> #include <newsmips/dev/fbdefs.h>
extern int badaddr();
#ifdef CPU_SINGLE #ifdef CPU_SINGLE
#define SW_CONSOLE 0x07 #define SW_CONSOLE 0x07
#define SW_NWB512 0x04 #define SW_NWB512 0x04

View File

@ -1,4 +1,4 @@
/* $NetBSD: fbbm_253.c,v 1.3 1999/02/15 04:36:34 hubertf Exp $ */ /* $NetBSD: fbbm_253.c,v 1.4 2000/01/23 14:57:11 tsubai Exp $ */
/* /*
* Copyright (c) 1992, 1993 * Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved. * The Regents of the University of California. All rights reserved.
@ -49,6 +49,7 @@
#if NNWB253 > 0 #if NNWB253 > 0
#include <sys/param.h> #include <sys/param.h>
#include <machine/autoconf.h>
#include <machine/framebuf.h> #include <machine/framebuf.h>
#include <machine/locore.h> #include <machine/locore.h>
@ -204,8 +205,6 @@ int
fb253_probe(unit) fb253_probe(unit)
int unit; int unit;
{ {
extern int badaddr __P((caddr_t, int));
if (unit >= NNWB253) if (unit >= NNWB253)
return 0; return 0;
if (badaddr((caddr_t)0xb8ff0000, 2) || badaddr((caddr_t)0xb8e00000, 2)) if (badaddr((caddr_t)0xb8ff0000, 2) || badaddr((caddr_t)0xb8e00000, 2))