Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha fix constification fallout



details:   https://anonhg.NetBSD.org/src/rev/e66777c204fc
branches:  trunk
changeset: 581434:e66777c204fc
user:      drochner <drochner%NetBSD.org@localhost>
date:      Wed Jun 01 16:13:04 2005 +0000

description:
fix constification fallout

diffstat:

 sys/arch/alpha/alpha/autoconf.c      |  6 +++---
 sys/arch/alpha/alpha/db_disasm.c     |  6 +++---
 sys/arch/alpha/alpha/db_interface.c  |  6 +++---
 sys/arch/alpha/common/sgmap_common.c |  6 +++---
 4 files changed, 12 insertions(+), 12 deletions(-)

diffs (108 lines):

diff -r b2fb5a10fba5 -r e66777c204fc sys/arch/alpha/alpha/autoconf.c
--- a/sys/arch/alpha/alpha/autoconf.c   Wed Jun 01 16:11:15 2005 +0000
+++ b/sys/arch/alpha/alpha/autoconf.c   Wed Jun 01 16:13:04 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: autoconf.c,v 1.41 2004/10/23 17:07:38 thorpej Exp $ */
+/* $NetBSD: autoconf.c,v 1.42 2005/06/01 16:13:04 drochner Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -42,7 +42,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.41 2004/10/23 17:07:38 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.42 2005/06/01 16:13:04 drochner Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -83,7 +83,7 @@
         * during autoconfig.
         */
        (void)alpha_pal_swpipl(ALPHA_PSL_IPL_HIGH);
-       if (config_rootfound("mainbus", "mainbus") == NULL)
+       if (config_rootfound("mainbus", NULL) == NULL)
                panic("no mainbus found");
        (void)spl0();
 
diff -r b2fb5a10fba5 -r e66777c204fc sys/arch/alpha/alpha/db_disasm.c
--- a/sys/arch/alpha/alpha/db_disasm.c  Wed Jun 01 16:11:15 2005 +0000
+++ b/sys/arch/alpha/alpha/db_disasm.c  Wed Jun 01 16:13:04 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_disasm.c,v 1.10 2000/08/09 20:00:30 tv Exp $ */
+/* $NetBSD: db_disasm.c,v 1.11 2005/06/01 16:13:04 drochner Exp $ */
 
 /* 
  * Mach Operating System
@@ -48,7 +48,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.10 2000/08/09 20:00:30 tv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.11 2005/06/01 16:13:04 drochner Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -127,7 +127,7 @@
 /*
  * Major opcodes
  */
-static char *op_name[64] = {
+static const char *op_name[64] = {
 /* 0 */        "call_pal", "op1", "op2", "op3", "op4", "op5",  "op6",  "op7",
 /* 8 */        "lda",  "ldah", "ldbu", "ldq_u","ldwu", "stw",  "stb",  "stq_u",
 /*16 */        "arit", "logical","bit","mul",  "op20", "vaxf", "ieeef","anyf",
diff -r b2fb5a10fba5 -r e66777c204fc sys/arch/alpha/alpha/db_interface.c
--- a/sys/arch/alpha/alpha/db_interface.c       Wed Jun 01 16:11:15 2005 +0000
+++ b/sys/arch/alpha/alpha/db_interface.c       Wed Jun 01 16:13:04 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_interface.c,v 1.18 2003/01/17 22:11:17 thorpej Exp $ */
+/* $NetBSD: db_interface.c,v 1.19 2005/06/01 16:13:04 drochner Exp $ */
 
 /* 
  * Mach Operating System
@@ -52,7 +52,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.18 2003/01/17 22:11:17 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.19 2005/06/01 16:13:04 drochner Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -246,7 +246,7 @@
 db_write_bytes(addr, size, data)
        vaddr_t         addr;
        register size_t size;
-       register char   *data;
+       register const char *data;
 {
        register char   *dst;
 
diff -r b2fb5a10fba5 -r e66777c204fc sys/arch/alpha/common/sgmap_common.c
--- a/sys/arch/alpha/common/sgmap_common.c      Wed Jun 01 16:11:15 2005 +0000
+++ b/sys/arch/alpha/common/sgmap_common.c      Wed Jun 01 16:13:04 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sgmap_common.c,v 1.20 2003/04/01 02:20:14 thorpej Exp $ */
+/* $NetBSD: sgmap_common.c,v 1.21 2005/06/01 16:13:04 drochner Exp $ */
 
 /*-
  * Copyright (c) 1997, 1998, 2001 The NetBSD Foundation, Inc.
@@ -39,7 +39,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: sgmap_common.c,v 1.20 2003/04/01 02:20:14 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sgmap_common.c,v 1.21 2005/06/01 16:13:04 drochner Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -113,7 +113,7 @@
         * Create the extent map used to manage the virtual address
         * space.
         */
-       sgmap->aps_ex = extent_create((char *)name, sgvabase, sgvasize - 1,
+       sgmap->aps_ex = extent_create(name, sgvabase, sgvasize - 1,
            M_DMAMAP, NULL, 0, EX_NOWAIT|EX_NOCOALESCE);
        if (sgmap->aps_ex == NULL) {
                printf("unable to create extent map for sgmap `%s'\n",



Home | Main Index | Thread Index | Old Index