svn commit: r249235 - head/bin/sh
Jilles Tjoelker
jilles at FreeBSD.org
Sun Apr 7 16:28:37 UTC 2013
Author: jilles
Date: Sun Apr 7 16:28:36 2013
New Revision: 249235
URL: http://svnweb.freebsd.org/changeset/base/249235
Log:
sh: Add const to nodesavestr().
Modified:
head/bin/sh/nodes.c.pat
Modified: head/bin/sh/nodes.c.pat
==============================================================================
--- head/bin/sh/nodes.c.pat Sun Apr 7 15:33:06 2013 (r249234)
+++ head/bin/sh/nodes.c.pat Sun Apr 7 16:28:36 2013 (r249235)
@@ -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;
More information about the svn-src-all
mailing list