diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-30 01:51:00 +0300 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-30 01:51:00 +0300 |
commit | a41fdf331af344ecd3ec230a072857ea197e1890 (patch) | |
tree | 70ffff0b7f48b35a70b8b04253abe9118ded6026 /coreutils/expr.c | |
parent | e935602ff5d5a45be56585b8bad44194c3e837a3 (diff) |
preparatory patch for -Wwrite-strings #1
Diffstat (limited to 'coreutils/expr.c')
-rw-r--r-- | coreutils/expr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/coreutils/expr.c b/coreutils/expr.c index 51e553dc6..469d467bf 100644 --- a/coreutils/expr.c +++ b/coreutils/expr.c @@ -67,8 +67,8 @@ static char **args; static VALUE *docolon(VALUE * sv, VALUE * pv); static VALUE *eval(void); static VALUE *int_value(arith_t i); -static VALUE *str_value(char *s); -static int nextarg(char *str); +static VALUE *str_value(const char *s); +static int nextarg(const char *str); static int null(VALUE * v); static int toarith(VALUE * v); static void freev(VALUE * v); @@ -110,7 +110,7 @@ static VALUE *int_value(arith_t i) /* Return a VALUE for S. */ -static VALUE *str_value(char *s) +static VALUE *str_value(const char *s) { VALUE *v; @@ -172,7 +172,7 @@ static int toarith(VALUE * v) /* Return nonzero if the next token matches STR exactly. STR must not be NULL. */ -static int nextarg(char *str) +static int nextarg(const char *str) { if (*args == NULL) return 0; |