Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Apr 2013 16:28:36 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r249235 - head/bin/sh
Message-ID:  <201304071628.r37GSaMH010950@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304071628.r37GSaMH010950>