Module Name: src
Committed By: kre
Date: Sat Dec 1 01:21:07 UTC 2018
Modified Files:
src/bin/sh: parser.c parser.h
Log Message:
NFC. Need a grain of const
To generate a diff of this commit:
cvs rdiff -u -r1.153 -r1.154 src/bin/sh/parser.c
cvs rdiff -u -r1.24 -r1.25 src/bin/sh/parser.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/parser.c
diff -u src/bin/sh/parser.c:1.153 src/bin/sh/parser.c:1.154
--- src/bin/sh/parser.c:1.153 Sun Nov 18 17:23:37 2018
+++ src/bin/sh/parser.c Sat Dec 1 01:21:06 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: parser.c,v 1.153 2018/11/18 17:23:37 kre Exp $ */
+/* $NetBSD: parser.c,v 1.154 2018/12/01 01:21:06 kre Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)parser.c 8.7 (Berkeley) 5/16/95";
#else
-__RCSID("$NetBSD: parser.c,v 1.153 2018/11/18 17:23:37 kre Exp $");
+__RCSID("$NetBSD: parser.c,v 1.154 2018/12/01 01:21:06 kre Exp $");
#endif
#endif /* not lint */
@@ -2254,9 +2254,9 @@ noexpand(char *text)
*/
int
-goodname(char *name)
+goodname(const char *name)
{
- char *p;
+ const char *p;
p = name;
if (! is_name(*p))
Index: src/bin/sh/parser.h
diff -u src/bin/sh/parser.h:1.24 src/bin/sh/parser.h:1.25
--- src/bin/sh/parser.h:1.24 Mon Aug 21 13:20:49 2017
+++ src/bin/sh/parser.h Sat Dec 1 01:21:06 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: parser.h,v 1.24 2017/08/21 13:20:49 kre Exp $ */
+/* $NetBSD: parser.h,v 1.25 2018/12/01 01:21:06 kre Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -73,7 +73,7 @@
union node *parsecmd(int);
void fixredir(union node *, const char *, int);
-int goodname(char *);
+int goodname(const char *);
const char *getprompt(void *);
const char *expandstr(char *, int);