Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha add more "const"



details:   https://anonhg.NetBSD.org/src/rev/3a88ade66d31
branches:  trunk
changeset: 581543:3a88ade66d31
user:      drochner <drochner%NetBSD.org@localhost>
date:      Thu Jun 02 13:17:45 2005 +0000

description:
add more "const"

diffstat:

 sys/arch/alpha/alpha/compat_16_machdep.c |  6 +++---
 sys/arch/alpha/mcbus/mcbus.c             |  8 ++++----
 sys/arch/alpha/pci/pci_6600.c            |  6 +++---
 sys/arch/alpha/pci/tsvar.h               |  4 ++--
 sys/arch/alpha/tlsb/kftxxvar.h           |  4 ++--
 sys/arch/alpha/tlsb/tlsb.c               |  8 ++++----
 6 files changed, 18 insertions(+), 18 deletions(-)

diffs (162 lines):

diff -r 1791122dc36a -r 3a88ade66d31 sys/arch/alpha/alpha/compat_16_machdep.c
--- a/sys/arch/alpha/alpha/compat_16_machdep.c  Thu Jun 02 13:11:39 2005 +0000
+++ b/sys/arch/alpha/alpha/compat_16_machdep.c  Thu Jun 02 13:17:45 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_16_machdep.c,v 1.5 2005/01/21 15:50:42 drochner Exp $ */
+/* $NetBSD: compat_16_machdep.c,v 1.6 2005/06/02 13:17:45 drochner Exp $ */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -88,7 +88,7 @@
 #include <machine/cpu.h>
 #include <machine/reg.h>
 
-__KERNEL_RCSID(0, "$NetBSD: compat_16_machdep.c,v 1.5 2005/01/21 15:50:42 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: compat_16_machdep.c,v 1.6 2005/06/02 13:17:45 drochner Exp $");
 
 
 #ifdef DEBUG
@@ -198,7 +198,7 @@
 #ifdef COMPAT_16
        case 1:
                buildcontext(l,(void *)catcher,
-                            (void *)ps->sa_sigdesc[sig].sd_tramp,
+                            (const void *)ps->sa_sigdesc[sig].sd_tramp,
                             (void *)fp);
                break;
 #endif
diff -r 1791122dc36a -r 3a88ade66d31 sys/arch/alpha/mcbus/mcbus.c
--- a/sys/arch/alpha/mcbus/mcbus.c      Thu Jun 02 13:11:39 2005 +0000
+++ b/sys/arch/alpha/mcbus/mcbus.c      Thu Jun 02 13:17:45 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mcbus.c,v 1.14 2004/09/13 14:57:31 drochner Exp $ */
+/* $NetBSD: mcbus.c,v 1.15 2005/06/02 13:17:45 drochner Exp $ */
 
 /*
  * Copyright (c) 1998 by Matthew Jacob
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: mcbus.c,v 1.14 2004/09/13 14:57:31 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mcbus.c,v 1.15 2005/06/02 13:17:45 drochner Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -68,7 +68,7 @@
 static int     mcbusprint __P((void *, const char *));
 static int     mcbussbm __P((struct device *, struct cfdata *,
                              const locdesc_t *, void *));
-static char    *mcbus_node_type_str __P((u_int8_t));
+static const char *mcbus_node_type_str __P((u_int8_t));
 
 typedef struct {
        struct device   mcbus_dev;
@@ -239,7 +239,7 @@
        mcpcia_config_cleanup();
 }
 
-static char *
+static const char *
 mcbus_node_type_str(type)
        u_int8_t type;
 {
diff -r 1791122dc36a -r 3a88ade66d31 sys/arch/alpha/pci/pci_6600.c
--- a/sys/arch/alpha/pci/pci_6600.c     Thu Jun 02 13:11:39 2005 +0000
+++ b/sys/arch/alpha/pci/pci_6600.c     Thu Jun 02 13:17:45 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_6600.c,v 1.11 2005/03/29 04:06:20 thorpej Exp $ */
+/* $NetBSD: pci_6600.c,v 1.12 2005/06/02 13:17:45 drochner Exp $ */
 
 /*-
  * Copyright (c) 1999 by Ross Harvey.  All rights reserved.
@@ -33,7 +33,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pci_6600.c,v 1.11 2005/03/29 04:06:20 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_6600.c,v 1.12 2005/06/02 13:17:45 drochner Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -77,7 +77,7 @@
 #define        DEC_6600_LINE_IS_ISA(line)      ((line) >= 0xe0 && (line) <= 0xef)
 #define        DEC_6600_LINE_ISA_IRQ(line)     ((line) & 0x0f)
 
-static char *irqtype = "6600 irq";
+static const char *irqtype = "6600 irq";
 static struct tsp_config *sioprimary;
 
 void dec_6600_intr_disestablish __P((void *, void *));
diff -r 1791122dc36a -r 3a88ade66d31 sys/arch/alpha/pci/tsvar.h
--- a/sys/arch/alpha/pci/tsvar.h        Thu Jun 02 13:11:39 2005 +0000
+++ b/sys/arch/alpha/pci/tsvar.h        Thu Jun 02 13:17:45 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tsvar.h,v 1.3 2000/11/29 06:30:09 thorpej Exp $ */
+/* $NetBSD: tsvar.h,v 1.4 2005/06/02 13:17:45 drochner Exp $ */
 
 /*-
  * Copyright (c) 1999 by Ross Harvey.  All rights reserved.
@@ -68,7 +68,7 @@
 };
 
 struct tsp_attach_args {
-       char    *tsp_name;
+       const char *tsp_name;
        int     tsp_slot;
 };
 
diff -r 1791122dc36a -r 3a88ade66d31 sys/arch/alpha/tlsb/kftxxvar.h
--- a/sys/arch/alpha/tlsb/kftxxvar.h    Thu Jun 02 13:11:39 2005 +0000
+++ b/sys/arch/alpha/tlsb/kftxxvar.h    Thu Jun 02 13:17:45 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kftxxvar.h,v 1.3 1997/04/06 20:08:38 cgd Exp $ */
+/* $NetBSD: kftxxvar.h,v 1.4 2005/06/02 13:17:45 drochner Exp $ */
 
 /*
  * Copyright (c) 1997 by Matthew Jacob
@@ -38,7 +38,7 @@
  * The structure used to attach devices to the TurboLaser.
  */
 struct kft_dev_attach_args {
-       char *          ka_name;        /*  name */
+       const char      *ka_name;       /*  name */
        int             ka_node;        /* node number */
        u_int16_t       ka_dtype;       /* device type */
        u_int16_t       ka_hosenum;     /* hose number */
diff -r 1791122dc36a -r 3a88ade66d31 sys/arch/alpha/tlsb/tlsb.c
--- a/sys/arch/alpha/tlsb/tlsb.c        Thu Jun 02 13:11:39 2005 +0000
+++ b/sys/arch/alpha/tlsb/tlsb.c        Thu Jun 02 13:17:45 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tlsb.c,v 1.27 2004/09/13 14:48:46 drochner Exp $ */
+/* $NetBSD: tlsb.c,v 1.28 2005/06/02 13:17:45 drochner Exp $ */
 /*
  * Copyright (c) 1997 by Matthew Jacob
  * NASA AMES Research Center.
@@ -39,7 +39,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: tlsb.c,v 1.27 2004/09/13 14:48:46 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tlsb.c,v 1.28 2005/06/02 13:17:45 drochner Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -73,7 +73,7 @@
 static int     tlsbprint __P((void *, const char *));
 static int     tlsbsubmatch __P((struct device *, struct cfdata *,
                                  const locdesc_t *, void *));
-static char    *tlsb_node_type_str __P((u_int32_t));
+static const char *tlsb_node_type_str __P((u_int32_t));
 
 /*
  * There can be only one TurboLaser, and we'll overload it
@@ -263,7 +263,7 @@
        }
 }
 
-static char *
+static const char *
 tlsb_node_type_str(dtype)
        u_int32_t dtype;
 {



Home | Main Index | Thread Index | Old Index