Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/sh NFC. Need a grain of const
details: https://anonhg.NetBSD.org/src/rev/83d4f3a2a505
branches: trunk
changeset: 994989:83d4f3a2a505
user: kre <kre%NetBSD.org@localhost>
date: Sat Dec 01 01:21:06 2018 +0000
description:
NFC. Need a grain of const
diffstat:
bin/sh/parser.c | 8 ++++----
bin/sh/parser.h | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (48 lines):
diff -r 9b4544e73b8f -r 83d4f3a2a505 bin/sh/parser.c
--- a/bin/sh/parser.c Sat Dec 01 01:20:05 2018 +0000
+++ b/bin/sh/parser.c Sat Dec 01 01:21:06 2018 +0000
@@ -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 @@
*/
int
-goodname(char *name)
+goodname(const char *name)
{
- char *p;
+ const char *p;
p = name;
if (! is_name(*p))
diff -r 9b4544e73b8f -r 83d4f3a2a505 bin/sh/parser.h
--- a/bin/sh/parser.h Sat Dec 01 01:20:05 2018 +0000
+++ b/bin/sh/parser.h Sat Dec 01 01:21:06 2018 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index