From 7d919c164db0559125cada8d1007b308fb7d8443 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sun, 7 Apr 2013 16:28:36 +0000 Subject: [PATCH] sh: Add const to nodesavestr(). --- bin/sh/nodes.c.pat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/sh/nodes.c.pat b/bin/sh/nodes.c.pat index b325d76b336..e99e3abba69 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;