Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/stand/boot constify



details:   https://anonhg.NetBSD.org/src/rev/205ef6ba1dde
branches:  trunk
changeset: 581595:205ef6ba1dde
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Jun 03 03:58:36 2005 +0000

description:
constify

diffstat:

 sys/arch/sparc/stand/boot/boot.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r 36024600cbbd -r 205ef6ba1dde sys/arch/sparc/stand/boot/boot.c
--- a/sys/arch/sparc/stand/boot/boot.c  Fri Jun 03 03:34:44 2005 +0000
+++ b/sys/arch/sparc/stand/boot/boot.c  Fri Jun 03 03:58:36 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: boot.c,v 1.20 2005/04/27 07:59:47 martin Exp $ */
+/*     $NetBSD: boot.c,v 1.21 2005/06/03 03:58:36 martin Exp $ */
 
 /*-
  * Copyright (c) 1982, 1986, 1990, 1993
@@ -47,7 +47,7 @@
 
 extern void    prom_patch __P((void)); /* prompatch.c */
 
-static int     bootoptions __P((char *));
+static int     bootoptions __P((const char *));
 
 int    boothowto;
 int    debug;
@@ -87,7 +87,7 @@
 
 int
 bootoptions(ap)
-       char *ap;
+       const char *ap;
 {
        int v = 0;
        if (ap == NULL || *ap++ != '-')
@@ -235,7 +235,8 @@
 main()
 {
        int     error, i;
-       char    kernel[MAX_PROM_PATH], *k;
+       char    kernel[MAX_PROM_PATH];
+       const char *k;
        u_long  marks[MARK_MAX], bootinfo;
        struct btinfo_symtab bi_sym;
        void    *arg;



Home | Main Index | Thread Index | Old Index