Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/evbmips Change the second argument of config_rootfo...



details:   https://anonhg.NetBSD.org/src/rev/17fa65f93604
branches:  trunk
changeset: 581903:17fa65f93604
user:      he <he%NetBSD.org@localhost>
date:      Thu Jun 09 21:41:52 2005 +0000

description:
Change the second argument of config_rootfound() from a string to NULL,
so that we compile with -Wcast-qual.

diffstat:

 sys/arch/evbmips/alchemy/autoconf.c |  6 +++---
 sys/arch/evbmips/malta/autoconf.c   |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 8ae8628eda0a -r 17fa65f93604 sys/arch/evbmips/alchemy/autoconf.c
--- a/sys/arch/evbmips/alchemy/autoconf.c       Thu Jun 09 17:46:19 2005 +0000
+++ b/sys/arch/evbmips/alchemy/autoconf.c       Thu Jun 09 21:41:52 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.7 2004/10/23 17:07:38 thorpej Exp $ */
+/* $NetBSD: autoconf.c,v 1.8 2005/06/09 21:41:52 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.7 2004/10/23 17:07:38 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.8 2005/06/09 21:41:52 he Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -65,7 +65,7 @@
 
        /* Kick off autoconfiguration. */
        (void)splhigh();
-       if (config_rootfound("mainbus", "mainbus") == NULL)
+       if (config_rootfound("mainbus", NULL) == NULL)
                panic("no mainbus found");
        (void)spl0();
 }
diff -r 8ae8628eda0a -r 17fa65f93604 sys/arch/evbmips/malta/autoconf.c
--- a/sys/arch/evbmips/malta/autoconf.c Thu Jun 09 17:46:19 2005 +0000
+++ b/sys/arch/evbmips/malta/autoconf.c Thu Jun 09 21:41:52 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.5 2004/10/23 17:07:38 thorpej Exp $     */
+/*     $NetBSD: autoconf.c,v 1.6 2005/06/09 21:41:52 he Exp $  */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.5 2004/10/23 17:07:38 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.6 2005/06/09 21:41:52 he Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -56,7 +56,7 @@
 
        /* Kick off autoconfiguration. */
        (void)splhigh();
-       if (config_rootfound("mainbus", "mainbus") == NULL)
+       if (config_rootfound("mainbus", NULL) == NULL)
                panic("no mainbus found");
        (void)spl0();
 }



Home | Main Index | Thread Index | Old Index