diff options
author | jilles <jilles@FreeBSD.org> | 2009-12-24 18:41:14 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2009-12-24 18:41:14 +0000 |
commit | 8e458de8523a07bb3be5f06ed227236cb12be7f4 (patch) | |
tree | 3810323287749c3a09fadeeed64429a5bf2fbb4d /bin/sh/histedit.c | |
parent | ff49e8168bd001a89cc6ca577b7b33399eb2c409 (diff) | |
download | FreeBSD-src-8e458de8523a07bb3be5f06ed227236cb12be7f4.zip FreeBSD-src-8e458de8523a07bb3be5f06ed227236cb12be7f4.tar.gz |
sh: Constify various strings.
Most of this is adding const keywords, but setvar() in var.c had to be
changed somewhat more.
Diffstat (limited to 'bin/sh/histedit.c')
-rw-r--r-- | bin/sh/histedit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/sh/histedit.c b/bin/sh/histedit.c index 0c2def8..8240a96 100644 --- a/bin/sh/histedit.c +++ b/bin/sh/histedit.c @@ -406,7 +406,7 @@ fc_replace(const char *s, char *p, char *r) } int -not_fcnumber(char *s) +not_fcnumber(const char *s) { if (s == NULL) return (0); @@ -416,10 +416,10 @@ not_fcnumber(char *s) } int -str_to_event(char *str, int last) +str_to_event(const char *str, int last) { HistEvent he; - char *s = str; + const char *s = str; int relative = 0; int i, retval; |