Source-Changes-HG archive

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

[src/trunk]: src/bin/sh Add const.



details:   https://anonhg.NetBSD.org/src/rev/4703d641a193
branches:  trunk
changeset: 786447:4703d641a193
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sun Apr 28 17:01:28 2013 +0000

description:
Add const.

diffstat:

 bin/sh/mystring.c |  6 +++---
 bin/sh/shell.h    |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 99aab1ed1d02 -r 4703d641a193 bin/sh/mystring.c
--- a/bin/sh/mystring.c Sun Apr 28 15:49:58 2013 +0000
+++ b/bin/sh/mystring.c Sun Apr 28 17:01:28 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mystring.c,v 1.16 2003/08/07 09:05:35 agc Exp $        */
+/*     $NetBSD: mystring.c,v 1.17 2013/04/28 17:01:28 dholland Exp $   */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)mystring.c 8.2 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: mystring.c,v 1.16 2003/08/07 09:05:35 agc Exp $");
+__RCSID("$NetBSD: mystring.c,v 1.17 2013/04/28 17:01:28 dholland Exp $");
 #endif
 #endif /* not lint */
 
@@ -58,7 +58,7 @@
 #include "mystring.h"
 
 
-char nullstr[1];               /* zero length string */
+const char nullstr[1];         /* zero length string */
 
 /*
  * equal - #defined in mystring.h
diff -r 99aab1ed1d02 -r 4703d641a193 bin/sh/shell.h
--- a/bin/sh/shell.h    Sun Apr 28 15:49:58 2013 +0000
+++ b/bin/sh/shell.h    Sun Apr 28 17:01:28 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: shell.h,v 1.17 2003/08/07 09:05:38 agc Exp $   */
+/*     $NetBSD: shell.h,v 1.18 2013/04/28 17:01:28 dholland Exp $      */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -71,7 +71,7 @@
 
 #include <sys/cdefs.h>
 
-extern char nullstr[1];                /* null string */
+extern const char nullstr[1];          /* null string */
 
 
 #ifdef DEBUG



Home | Main Index | Thread Index | Old Index