Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/pmax/pmax more cast-qual fallout



details:   https://anonhg.NetBSD.org/src/rev/75a0fde36ad8
branches:  trunk
changeset: 581452:75a0fde36ad8
user:      drochner <drochner%NetBSD.org@localhost>
date:      Wed Jun 01 18:34:12 2005 +0000

description:
more cast-qual fallout

diffstat:

 sys/arch/pmax/pmax/autoconf.c |   8 ++++----
 sys/arch/pmax/pmax/disksubr.c |  14 +++++++-------
 sys/arch/pmax/pmax/machdep.c  |   7 ++++---
 3 files changed, 15 insertions(+), 14 deletions(-)

diffs (120 lines):

diff -r dc7f46203948 -r 75a0fde36ad8 sys/arch/pmax/pmax/autoconf.c
--- a/sys/arch/pmax/pmax/autoconf.c     Wed Jun 01 18:32:07 2005 +0000
+++ b/sys/arch/pmax/pmax/autoconf.c     Wed Jun 01 18:34:12 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.66 2004/10/23 17:12:22 thorpej Exp $    */
+/*     $NetBSD: autoconf.c,v 1.67 2005/06/01 18:34:12 drochner Exp $   */
 
 /*
  * Copyright (c) 1992, 1993
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.66 2004/10/23 17:12:22 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.67 2005/06/01 18:34:12 drochner Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -103,7 +103,7 @@
 struct intrhand                 intrtab[MAX_DEV_NCOOKIES];
 static struct device   *booted_controller;
 static int              booted_slot, booted_unit;
-static char            *booted_protocol;
+static const char      *booted_protocol;
 
 /*
  * Configure all devices on system
@@ -119,7 +119,7 @@
        evcnt_attach_static(&pmax_fpu_evcnt);
        evcnt_attach_static(&pmax_memerr_evcnt);
 
-       if (config_rootfound("mainbus", "mainbus") == NULL)
+       if (config_rootfound("mainbus", NULL) == NULL)
                panic("no mainbus found");
 
        /* Reset any bus errors due to probing nonexistent devices. */
diff -r dc7f46203948 -r 75a0fde36ad8 sys/arch/pmax/pmax/disksubr.c
--- a/sys/arch/pmax/pmax/disksubr.c     Wed Jun 01 18:32:07 2005 +0000
+++ b/sys/arch/pmax/pmax/disksubr.c     Wed Jun 01 18:34:12 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disksubr.c,v 1.41 2003/08/07 16:29:13 agc Exp $        */
+/*     $NetBSD: disksubr.c,v 1.42 2005/06/01 18:34:12 drochner Exp $   */
 
 /*
  * Copyright (c) 1982, 1986, 1988 Regents of the University of California.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.41 2003/08/07 16:29:13 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.42 2005/06/01 18:34:12 drochner Exp $");
 
 #include "opt_compat_ultrix.h"
 
@@ -47,8 +47,8 @@
 #include <ufs/ufs/dinode.h>            /* XXX for fs.h */
 #include <ufs/ffs/fs.h>                        /* XXX for BBSIZE & SBSIZE */
 
-char   *compat_label __P((dev_t dev, void (*strat) __P((struct buf *bp)),
-           struct disklabel *lp, struct cpu_disklabel *osdep));        /* XXX */
+const char *compat_label __P((dev_t dev, void (*strat) __P((struct buf *bp)),
+       struct disklabel *lp, struct cpu_disklabel *osdep));    /* XXX */
 
 #endif
 
@@ -69,7 +69,7 @@
 {
        struct buf *bp;
        struct disklabel *dlp;
-       char *msg = NULL;
+       const char *msg = NULL;
 
        if (lp->d_secperunit == 0)
                lp->d_secperunit = 0x1fffffff;
@@ -125,7 +125,7 @@
  * Given a buffer bp, try and interpret it as an Ultrix disk label,
  * putting the partition info into a native NetBSD label
  */
-char *
+const char *
 compat_label(dev, strat, lp, osdep)
        dev_t dev;
        void (*strat) __P((struct buf *bp));
@@ -134,7 +134,7 @@
 {
        dec_disklabel *dlp;
        struct buf *bp = NULL;
-       char *msg = NULL;
+       const char *msg = NULL;
 
        bp = geteblk((int)lp->d_secsize);
        bp->b_dev = dev;
diff -r dc7f46203948 -r 75a0fde36ad8 sys/arch/pmax/pmax/machdep.c
--- a/sys/arch/pmax/pmax/machdep.c      Wed Jun 01 18:32:07 2005 +0000
+++ b/sys/arch/pmax/pmax/machdep.c      Wed Jun 01 18:34:12 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.210 2005/04/25 15:02:06 lukem Exp $      */
+/*     $NetBSD: machdep.c,v 1.211 2005/06/01 18:34:12 drochner Exp $   */
 
 /*
  * Copyright (c) 1992, 1993
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.210 2005/04/25 15:02:06 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.211 2005/06/01 18:34:12 drochner Exp $");
 
 #include "fs_mfs.h"
 #include "opt_ddb.h"
@@ -201,7 +201,8 @@
        u_int bim;
        char *bip;
 {
-       char *cp, *bootinfo_msg;
+       char *cp;
+       const char *bootinfo_msg;
        u_long first, last;
        int i;
        caddr_t kernend;



Home | Main Index | Thread Index | Old Index