summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2013-04-07 16:28:36 +0000
committerjilles <jilles@FreeBSD.org>2013-04-07 16:28:36 +0000
commit6990a1cb763b0e3d79a13d5619c0d6e9290a7e05 (patch)
treec0df2c5b1eadfd69d1f13fb128da9ee71b9f6f73
parent79b18999343394e8e54219cbd8f36e56edb0e7d7 (diff)
downloadFreeBSD-src-6990a1cb763b0e3d79a13d5619c0d6e9290a7e05.zip
FreeBSD-src-6990a1cb763b0e3d79a13d5619c0d6e9290a7e05.tar.gz
sh: Add const to nodesavestr().
-rw-r--r--bin/sh/nodes.c.pat6
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;
OpenPOWER on IntegriCloud