Module Name: src
Committed By: dholland
Date: Sun Apr 28 17:01:29 UTC 2013
Modified Files:
src/bin/sh: mystring.c shell.h
Log Message:
Add const.
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/bin/sh/mystring.c
cvs rdiff -u -r1.17 -r1.18 src/bin/sh/shell.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/bin/sh/mystring.c
diff -u src/bin/sh/mystring.c:1.16 src/bin/sh/mystring.c:1.17
--- src/bin/sh/mystring.c:1.16 Thu Aug 7 09:05:35 2003
+++ src/bin/sh/mystring.c Sun Apr 28 17:01:28 2013
@@ -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 @@ __RCSID("$NetBSD: mystring.c,v 1.16 2003
#include "mystring.h"
-char nullstr[1]; /* zero length string */
+const char nullstr[1]; /* zero length string */
/*
* equal - #defined in mystring.h
Index: src/bin/sh/shell.h
diff -u src/bin/sh/shell.h:1.17 src/bin/sh/shell.h:1.18
--- src/bin/sh/shell.h:1.17 Thu Aug 7 09:05:38 2003
+++ src/bin/sh/shell.h Sun Apr 28 17:01:28 2013
@@ -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 @@ typedef void *pointer;
#include <sys/cdefs.h>
-extern char nullstr[1]; /* null string */
+extern const char nullstr[1]; /* null string */
#ifdef DEBUG