From 8e458de8523a07bb3be5f06ed227236cb12be7f4 Mon Sep 17 00:00:00 2001 From: jilles Date: Thu, 24 Dec 2009 18:41:14 +0000 Subject: sh: Constify various strings. Most of this is adding const keywords, but setvar() in var.c had to be changed somewhat more. --- bin/sh/options.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin/sh/options.c') diff --git a/bin/sh/options.c b/bin/sh/options.c index fea95ca..8582f79 100644 --- a/bin/sh/options.c +++ b/bin/sh/options.c @@ -554,9 +554,10 @@ out: */ int -nextopt(char *optstring) +nextopt(const char *optstring) { - char *p, *q; + char *p; + const char *q; char c; if ((p = optptr) == NULL || *p == '\0') { -- cgit v1.1