diff options
author | jilles <jilles@FreeBSD.org> | 2013-04-07 16:28:36 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2013-04-07 16:28:36 +0000 |
commit | 6990a1cb763b0e3d79a13d5619c0d6e9290a7e05 (patch) | |
tree | c0df2c5b1eadfd69d1f13fb128da9ee71b9f6f73 | |
parent | 79b18999343394e8e54219cbd8f36e56edb0e7d7 (diff) | |
download | FreeBSD-src-6990a1cb763b0e3d79a13d5619c0d6e9290a7e05.zip FreeBSD-src-6990a1cb763b0e3d79a13d5619c0d6e9290a7e05.tar.gz |
sh: Add const to nodesavestr().
-rw-r--r-- | bin/sh/nodes.c.pat | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/sh/nodes.c.pat b/bin/sh/nodes.c.pat index b325d76..e99e3ab 100644 --- a/bin/sh/nodes.c.pat +++ b/bin/sh/nodes.c.pat @@ -58,7 +58,7 @@ static void calcsize(union node *); static void sizenodelist(struct nodelist *); static union node *copynode(union node *); static struct nodelist *copynodelist(struct nodelist *); -static char *nodesavestr(char *); +static char *nodesavestr(const char *); struct funcdef { @@ -147,9 +147,9 @@ copynodelist(struct nodelist *lp) static char * -nodesavestr(char *s) +nodesavestr(const char *s) { - char *p = s; + const char *p = s; char *q = funcstring; char *rtn = funcstring; |