diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-29 22:51:00 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-01-29 22:51:00 +0000 |
commit | 32d944197db7cd9a6d6014aa83d1d9fd36e4f7ca (patch) | |
tree | 70ffff0b7f48b35a70b8b04253abe9118ded6026 /coreutils/expr.c | |
parent | 2014b85b6cade935b303d4cd10a20d21efd42aad (diff) | |
download | busybox-w32-32d944197db7cd9a6d6014aa83d1d9fd36e4f7ca.tar.gz busybox-w32-32d944197db7cd9a6d6014aa83d1d9fd36e4f7ca.tar.bz2 busybox-w32-32d944197db7cd9a6d6014aa83d1d9fd36e4f7ca.zip |
preparatory patch for -Wwrite-strings #1
git-svn-id: svn://busybox.net/trunk/busybox@17653 69ca8d6d-28ef-0310-b511-8ec308f3f277
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; | |||
67 | static VALUE *docolon(VALUE * sv, VALUE * pv); | 67 | static VALUE *docolon(VALUE * sv, VALUE * pv); |
68 | static VALUE *eval(void); | 68 | static VALUE *eval(void); |
69 | static VALUE *int_value(arith_t i); | 69 | static VALUE *int_value(arith_t i); |
70 | static VALUE *str_value(char *s); | 70 | static VALUE *str_value(const char *s); |
71 | static int nextarg(char *str); | 71 | static int nextarg(const char *str); |
72 | static int null(VALUE * v); | 72 | static int null(VALUE * v); |
73 | static int toarith(VALUE * v); | 73 | static int toarith(VALUE * v); |
74 | static void freev(VALUE * v); | 74 | static void freev(VALUE * v); |
@@ -110,7 +110,7 @@ static VALUE *int_value(arith_t i) | |||
110 | 110 | ||
111 | /* Return a VALUE for S. */ | 111 | /* Return a VALUE for S. */ |
112 | 112 | ||
113 | static VALUE *str_value(char *s) | 113 | static VALUE *str_value(const char *s) |
114 | { | 114 | { |
115 | VALUE *v; | 115 | VALUE *v; |
116 | 116 | ||
@@ -172,7 +172,7 @@ static int toarith(VALUE * v) | |||
172 | /* Return nonzero if the next token matches STR exactly. | 172 | /* Return nonzero if the next token matches STR exactly. |
173 | STR must not be NULL. */ | 173 | STR must not be NULL. */ |
174 | 174 | ||
175 | static int nextarg(char *str) | 175 | static int nextarg(const char *str) |
176 | { | 176 | { |
177 | if (*args == NULL) | 177 | if (*args == NULL) |
178 | return 0; | 178 | return 0; |