diff options
| author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-29 22:51:00 +0000 |
|---|---|---|
| committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-29 22:51:00 +0000 |
| commit | a41fdf331af344ecd3ec230a072857ea197e1890 (patch) | |
| tree | 70ffff0b7f48b35a70b8b04253abe9118ded6026 /coreutils/expr.c | |
| parent | e935602ff5d5a45be56585b8bad44194c3e837a3 (diff) | |
| download | busybox-w32-a41fdf331af344ecd3ec230a072857ea197e1890.tar.gz busybox-w32-a41fdf331af344ecd3ec230a072857ea197e1890.tar.bz2 busybox-w32-a41fdf331af344ecd3ec230a072857ea197e1890.zip | |
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; | |||
| 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; |
