Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/conf Const'ify string constants.
details: https://anonhg.NetBSD.org/src/rev/dadec632024a
branches: trunk
changeset: 494784:dadec632024a
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri Jul 14 07:14:03 2000 +0000
description:
Const'ify string constants.
diffstat:
sys/conf/newvers.sh | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r 70dfda7bbeb9 -r dadec632024a sys/conf/newvers.sh
--- a/sys/conf/newvers.sh Fri Jul 14 07:12:47 2000 +0000
+++ b/sys/conf/newvers.sh Fri Jul 14 07:14:03 2000 +0000
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $NetBSD: newvers.sh,v 1.30 2000/01/23 23:39:19 hubertf Exp $
+# $NetBSD: newvers.sh,v 1.31 2000/07/14 07:14:03 thorpej Exp $
#
# Copyright (c) 1984, 1986, 1990, 1993
# The Regents of the University of California. All rights reserved.
@@ -52,14 +52,14 @@
ost="NetBSD"
osr=`sh $osrelcmd`
-echo "char ostype[] = \"${ost}\";" > vers.c
-echo "char osrelease[] = \"${osr}\";" >> vers.c
+echo "const char ostype[] = \"${ost}\";" > vers.c
+echo "const char osrelease[] = \"${osr}\";" >> vers.c
echo \
- "char sccs[] = \
+ "const char sccs[] = \
\"@""(#)${ost} ${osr} (${id}) #${v}: ${t}\\n ${u}@${h}:${d}\\n\";" \
>> vers.c
echo \
- "char version[] = \
+ "const char version[] = \
\"${ost} ${osr} (${id}) #${v}: ${t}\\n ${u}@${h}:${d}\\n\";" \
>> vers.c
Home |
Main Index |
Thread Index |
Old Index