Adapt to compiling with -Wcast-qual by setting the last argument to
config_rootfound() to NULL.
This commit is contained in:
parent
10d9cac89f
commit
0b11d7187e
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: autoconf.c,v 1.4 2004/10/23 17:07:38 thorpej Exp $ */
|
||||
/* $NetBSD: autoconf.c,v 1.5 2005/06/09 06:48:16 he Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -37,7 +37,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.4 2004/10/23 17:07:38 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.5 2005/06/09 06:48:16 he Exp $");
|
||||
|
||||
#include "opt_algor_p4032.h"
|
||||
#include "opt_algor_p5064.h"
|
||||
|
@ -60,7 +60,7 @@ cpu_configure(void)
|
|||
intr_init();
|
||||
|
||||
(void) splhigh();
|
||||
if (config_rootfound("mainbus", "mainbus") == 0)
|
||||
if (config_rootfound("mainbus", NULL) == 0)
|
||||
panic("no mainbus found");
|
||||
(void) spl0();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue