Source-Changes-HG archive

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

[src/trunk]: src/sys Constify



details:   https://anonhg.NetBSD.org/src/rev/03a001118c4e
branches:  trunk
changeset: 581679:03a001118c4e
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Jun 03 18:58:40 2005 +0000

description:
Constify

diffstat:

 sys/arch/sgimips/sgimips/arcemu.c |   9 ++++-----
 sys/arch/sgimips/sgimips/arcemu.h |   4 ++--
 sys/dev/arcbios/arcbios.h         |  10 +++++-----
 3 files changed, 11 insertions(+), 12 deletions(-)

diffs (81 lines):

diff -r 58b951a87c05 -r 03a001118c4e sys/arch/sgimips/sgimips/arcemu.c
--- a/sys/arch/sgimips/sgimips/arcemu.c Fri Jun 03 18:55:53 2005 +0000
+++ b/sys/arch/sgimips/sgimips/arcemu.c Fri Jun 03 18:58:40 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arcemu.c,v 1.10 2005/04/18 15:46:18 tsutsui Exp $      */
+/*     $NetBSD: arcemu.c,v 1.11 2005/06/03 18:58:40 martin Exp $       */
 
 /*
  * Copyright (c) 2004 Steve Rumble 
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arcemu.c,v 1.10 2005/04/18 15:46:18 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arcemu.c,v 1.11 2005/06/03 18:58:40 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -65,7 +65,6 @@
  * Emulate various ARCBIOS functions on pre-ARCS sgimips
  * machines (<= IP17).
  */
-
 static struct arcbios_fv arcemu_v = {
        .Load =                         ARCEMU_UNIMPL,
        .Invoke =                       ARCEMU_UNIMPL,
@@ -283,8 +282,8 @@
        return (NULL);
 }
 
-static char *
-arcemu_ip12_GetEnvironmentVariable(char *var)
+static const char *
+arcemu_ip12_GetEnvironmentVariable(const char *var)
 {
 
        /* 'd'ebug (serial), 'g'raphics, 'G'raphics w/ logo */
diff -r 58b951a87c05 -r 03a001118c4e sys/arch/sgimips/sgimips/arcemu.h
--- a/sys/arch/sgimips/sgimips/arcemu.h Fri Jun 03 18:55:53 2005 +0000
+++ b/sys/arch/sgimips/sgimips/arcemu.h Fri Jun 03 18:58:40 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arcemu.h,v 1.4 2005/04/07 23:36:48 rumble Exp $        */
+/*     $NetBSD: arcemu.h,v 1.5 2005/06/03 18:58:40 martin Exp $        */
 
 /*
  * Copyright (c) 2004 Steve Rumble 
@@ -50,7 +50,7 @@
 static void    arcemu_ip12_init(void);
 static void *  arcemu_ip12_GetPeer(void *);
 static void *  arcemu_ip12_GetChild(void *);
-static char *  arcemu_ip12_GetEnvironmentVariable(char *); 
+static const char *    arcemu_ip12_GetEnvironmentVariable(const char *); 
 static void *  arcemu_ip12_GetMemoryDescriptor(void *mem);
 
 static void    arcemu_ip12_eeprom_read(void);
diff -r 58b951a87c05 -r 03a001118c4e sys/dev/arcbios/arcbios.h
--- a/sys/dev/arcbios/arcbios.h Fri Jun 03 18:55:53 2005 +0000
+++ b/sys/dev/arcbios/arcbios.h Fri Jun 03 18:58:40 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arcbios.h,v 1.8 2005/04/18 15:38:01 tsutsui Exp $      */
+/*     $NetBSD: arcbios.h,v 1.9 2005/06/03 18:58:40 martin Exp $       */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -444,12 +444,12 @@
                            char *,             /* path */
                            u_long);            /* operation */
 
-       char            *(*GetEnvironmentVariable)(
-                           char *);            /* variable */
+       const char      *(*GetEnvironmentVariable)(
+                           const char *);      /* variable */
 
        long            (*SetEnvironmentVariable)(
-                           char *,             /* variable */
-                           char *);            /* contents */
+                           const char *,       /* variable */
+                           const char *);      /* contents */
 
        long            (*GetFileInformation)(
                            u_long,             /* file ID */



Home | Main Index | Thread Index | Old Index