Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sun3 Constify.



details:   https://anonhg.NetBSD.org/src/rev/296f80077651
branches:  trunk
changeset: 581658:296f80077651
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri Jun 03 15:04:21 2005 +0000

description:
Constify.

diffstat:

 sys/arch/sun3/dev/fd.c          |  10 +++++-----
 sys/arch/sun3/dev/if_ie_sebuf.c |  10 +++++-----
 sys/arch/sun3/dev/if_ie_vme.c   |  10 +++++-----
 sys/arch/sun3/dev/memerr.c      |   8 ++++----
 sys/arch/sun3/dev/sevar.h       |   4 ++--
 sys/arch/sun3/dev/xy.c          |   8 ++++----
 sys/arch/sun3/dev/zs.c          |   6 +++---
 sys/arch/sun3/include/mon.h     |   6 +++---
 sys/arch/sun3/sun3/autoconf.c   |   6 +++---
 sys/arch/sun3/sun3/fpu.c        |   8 ++++----
 sys/arch/sun3/sun3/locore2.c    |   6 +++---
 sys/arch/sun3/sun3/machdep.h    |   4 ++--
 sys/arch/sun3/sun3/sunmon.c     |   6 +++---
 sys/arch/sun3/sun3/trap.c       |   6 +++---
 sys/arch/sun3/sun3x/machdep.c   |   6 +++---
 15 files changed, 52 insertions(+), 52 deletions(-)

diffs (truncated from 457 to 300 lines):

diff -r fc51fb6f8b9a -r 296f80077651 sys/arch/sun3/dev/fd.c
--- a/sys/arch/sun3/dev/fd.c    Fri Jun 03 15:01:44 2005 +0000
+++ b/sys/arch/sun3/dev/fd.c    Fri Jun 03 15:04:21 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fd.c,v 1.42 2005/01/22 15:36:10 chs Exp $      */
+/*     $NetBSD: fd.c,v 1.43 2005/06/03 15:04:21 tsutsui Exp $  */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -72,7 +72,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.42 2005/01/22 15:36:10 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.43 2005/06/03 15:04:21 tsutsui Exp $");
 
 #include "opt_ddb.h"
 
@@ -211,7 +211,7 @@
        int     rate;           /* transfer speed code */
        int     fillbyte;       /* format fill byte */
        int     interleave;     /* interleave factor (formatting) */
-       char    *name;
+       const char *name;
 };
 
 /* The order of entries in the following table is important -- BEWARE! */
@@ -297,7 +297,7 @@
 int    fdcresult(struct fdc_softc *);
 int    out_fdc(struct fdc_softc *, u_char);
 void   fdcstart(struct fdc_softc *);
-void   fdcstatus(struct device *, int, char *);
+void   fdcstatus(struct device *, int, const char *);
 void   fdc_reset(struct fdc_softc *);
 void   fdctimeout(void *);
 void   fdcpseudointr(void *);
@@ -933,7 +933,7 @@
 }
 
 void 
-fdcstatus(struct device *dv, int n, char *s)
+fdcstatus(struct device *dv, int n, const char *s)
 {
        struct fdc_softc *fdc = (void *)dv->dv_parent;
        char bits[64];
diff -r fc51fb6f8b9a -r 296f80077651 sys/arch/sun3/dev/if_ie_sebuf.c
--- a/sys/arch/sun3/dev/if_ie_sebuf.c   Fri Jun 03 15:01:44 2005 +0000
+++ b/sys/arch/sun3/dev/if_ie_sebuf.c   Fri Jun 03 15:04:21 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ie_sebuf.c,v 1.11 2005/01/22 15:36:10 chs Exp $     */
+/*     $NetBSD: if_ie_sebuf.c,v 1.12 2005/06/03 15:04:21 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ie_sebuf.c,v 1.11 2005/01/22 15:36:10 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ie_sebuf.c,v 1.12 2005/06/03 15:04:21 tsutsui Exp $");
 
 #include "opt_inet.h"
 
@@ -261,7 +261,7 @@
 {
        const u_char *b1e, *b1 = src;
        u_char *b2 = dst;
-       u_short *sp;
+       const u_short *sp;
        int bstore = 0;
 
        if (l == 0)
@@ -274,13 +274,13 @@
        }
 
        /* middle, */
-       sp = (u_short *)b1;
+       sp = (const u_short *)b1;
        b1e = b1 + l;
        if (l & 1)
                b1e--;
        bstore = (u_long)b2 & 1;
 
-       while (sp < (u_short *)b1e) {
+       while (sp < (const u_short *)b1e) {
                if (bstore) {
                        b2[1] = *sp & 0xff;
                        b2[0] = *sp >> 8;
diff -r fc51fb6f8b9a -r 296f80077651 sys/arch/sun3/dev/if_ie_vme.c
--- a/sys/arch/sun3/dev/if_ie_vme.c     Fri Jun 03 15:01:44 2005 +0000
+++ b/sys/arch/sun3/dev/if_ie_vme.c     Fri Jun 03 15:04:21 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ie_vme.c,v 1.18 2005/01/22 15:36:10 chs Exp $       */
+/*     $NetBSD: if_ie_vme.c,v 1.19 2005/06/03 15:04:21 tsutsui Exp $   */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ie_vme.c,v 1.18 2005/01/22 15:36:10 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ie_vme.c,v 1.19 2005/06/03 15:04:21 tsutsui Exp $");
 
 #include "opt_inet.h"
 
@@ -265,7 +265,7 @@
 {
        const u_char *b1e, *b1 = src;
        u_char *b2 = dst;
-       u_short *sp;
+       const u_short *sp;
        int bstore = 0;
 
        if (l == 0)
@@ -278,13 +278,13 @@
        }
 
        /* middle, */
-       sp = (u_short *)b1;
+       sp = (const u_short *)b1;
        b1e = b1 + l;
        if (l & 1)
                b1e--;
        bstore = (u_long)b2 & 1;
 
-       while (sp < (u_short *)b1e) {
+       while (sp < (const u_short *)b1e) {
                if (bstore) {
                        b2[1] = *sp & 0xff;
                        b2[0] = *sp >> 8;
diff -r fc51fb6f8b9a -r 296f80077651 sys/arch/sun3/dev/memerr.c
--- a/sys/arch/sun3/dev/memerr.c        Fri Jun 03 15:01:44 2005 +0000
+++ b/sys/arch/sun3/dev/memerr.c        Fri Jun 03 15:04:21 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: memerr.c,v 1.17 2005/01/22 15:36:10 chs Exp $ */
+/*     $NetBSD: memerr.c,v 1.18 2005/06/03 15:04:21 tsutsui Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: memerr.c,v 1.17 2005/01/22 15:36:10 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: memerr.c,v 1.18 2005/06/03 15:04:21 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -66,8 +66,8 @@
        struct device sc_dev;
        struct memerr *sc_reg;
        enum memerr_type sc_type;
-       char *sc_typename;      /* "Parity" or "ECC" */
-       char *sc_csrbits;       /* how to print csr bits */
+       const char *sc_typename;        /* "Parity" or "ECC" */
+       const char *sc_csrbits;         /* how to print csr bits */
        /* XXX: counters? */
 };
 
diff -r fc51fb6f8b9a -r 296f80077651 sys/arch/sun3/dev/sevar.h
--- a/sys/arch/sun3/dev/sevar.h Fri Jun 03 15:01:44 2005 +0000
+++ b/sys/arch/sun3/dev/sevar.h Fri Jun 03 15:04:21 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sevar.h,v 1.1 1997/10/17 03:39:50 gwr Exp $    */
+/*     $NetBSD: sevar.h,v 1.2 2005/06/03 15:04:21 tsutsui Exp $        */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
 
 struct sebuf_attach_args {
        struct confargs ca;
-       char *name;     /* name of child (se, ie) */
+       const char *name; /* name of child (se, ie) */
        char *buf;      /* KVA, pre-mapped. */
        int blen;       /* length of above */
        void *regs;     /* KVA of regs. */
diff -r fc51fb6f8b9a -r 296f80077651 sys/arch/sun3/dev/xy.c
--- a/sys/arch/sun3/dev/xy.c    Fri Jun 03 15:01:44 2005 +0000
+++ b/sys/arch/sun3/dev/xy.c    Fri Jun 03 15:04:21 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xy.c,v 1.50 2005/01/22 15:36:10 chs Exp $      */
+/*     $NetBSD: xy.c,v 1.51 2005/06/03 15:04:21 tsutsui Exp $  */
 
 /*
  *
@@ -52,7 +52,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xy.c,v 1.50 2005/01/22 15:36:10 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xy.c,v 1.51 2005/06/03 15:04:21 tsutsui Exp $");
 
 #undef XYC_DEBUG               /* full debug */
 #undef XYC_DIAG                        /* extra sanity checks */
@@ -160,7 +160,7 @@
 /* internals */
 struct xy_iopb *xyc_chain(struct xyc_softc *, struct xy_iorq *);
 int    xyc_cmd(struct xyc_softc *, int, int, int, int, int, char *, int);
-char   *xyc_e2str(int);
+const char *xyc_e2str(int);
 int    xyc_entoact(int);
 int    xyc_error(struct xyc_softc *, struct xy_iorq *, struct xy_iopb *, int);
 int    xyc_ioctlcmd(struct xy_softc *, dev_t dev, struct xd_iocmd *);
@@ -1981,7 +1981,7 @@
 /*
  * xyc_e2str: convert error code number into an error string
  */
-char *
+const char *
 xyc_e2str(int no)
 {
        switch (no) {
diff -r fc51fb6f8b9a -r 296f80077651 sys/arch/sun3/dev/zs.c
--- a/sys/arch/sun3/dev/zs.c    Fri Jun 03 15:01:44 2005 +0000
+++ b/sys/arch/sun3/dev/zs.c    Fri Jun 03 15:04:21 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zs.c,v 1.73 2005/01/22 15:36:10 chs Exp $      */
+/*     $NetBSD: zs.c,v 1.74 2005/06/03 15:04:21 tsutsui Exp $  */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -45,7 +45,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.73 2005/01/22 15:36:10 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.74 2005/06/03 15:04:21 tsutsui Exp $");
 
 #include "opt_kgdb.h"
 
@@ -780,7 +780,7 @@
        { 0, 1 },       /* ttyd */
 };
 
-static char *prom_inSrc_name[] = {
+static const char *prom_inSrc_name[] = {
        "keyboard/display",
        "ttya", "ttyb",
        "ttyc", "ttyd" };
diff -r fc51fb6f8b9a -r 296f80077651 sys/arch/sun3/include/mon.h
--- a/sys/arch/sun3/include/mon.h       Fri Jun 03 15:01:44 2005 +0000
+++ b/sys/arch/sun3/include/mon.h       Fri Jun 03 15:04:21 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mon.h,v 1.25 2005/01/22 15:36:10 chs Exp $     */
+/*     $NetBSD: mon.h,v 1.26 2005/06/03 15:04:21 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -161,7 +161,7 @@
         * Reboot interface routine -- resets and reboots system.  No return.
         */
 
-       int     (*reBoot)(char *);      /* e.g. reBoot("xy()vmunix") */
+       int     (*reBoot)(const char *);        /* e.g. reBoot("xy()vmunix") */
 
        /*
         * Line input and parsing
@@ -180,7 +180,7 @@
         * Print formatted output to current output sink
         */
 
-       int     (*printf)(char *, ...); /* Like kernel printf */
+       int     (*printf)(const char *, ...);   /* Like kernel printf */
        int     (*printHex)(int, int);  /* Format N digits in hex */
 
        /*
diff -r fc51fb6f8b9a -r 296f80077651 sys/arch/sun3/sun3/autoconf.c
--- a/sys/arch/sun3/sun3/autoconf.c     Fri Jun 03 15:01:44 2005 +0000
+++ b/sys/arch/sun3/sun3/autoconf.c     Fri Jun 03 15:04:21 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.62 2005/01/22 15:36:10 chs Exp $        */
+/*     $NetBSD: autoconf.c,v 1.63 2005/06/03 15:04:21 tsutsui Exp $    */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -45,7 +45,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.62 2005/01/22 15:36:10 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.63 2005/06/03 15:04:21 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -195,7 +195,7 @@
        struct prom_n2f *nf;
        struct device *boot_device;
        int boot_partition;
-       char *devname;
+       const char *devname;
        findfunc_t find;
        char promname[4];
        char partname[4];
diff -r fc51fb6f8b9a -r 296f80077651 sys/arch/sun3/sun3/fpu.c
--- a/sys/arch/sun3/sun3/fpu.c  Fri Jun 03 15:01:44 2005 +0000
+++ b/sys/arch/sun3/sun3/fpu.c  Fri Jun 03 15:04:21 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpu.c,v 1.20 2005/01/22 15:36:10 chs Exp $     */



Home | Main Index | Thread Index | Old Index