aboutsummaryrefslogtreecommitdiff
path: root/coreutils/expr.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-01-29 22:51:00 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-01-29 22:51:00 +0000
commita41fdf331af344ecd3ec230a072857ea197e1890 (patch)
tree70ffff0b7f48b35a70b8b04253abe9118ded6026 /coreutils/expr.c
parente935602ff5d5a45be56585b8bad44194c3e837a3 (diff)
downloadbusybox-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.c8
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;
67static VALUE *docolon(VALUE * sv, VALUE * pv); 67static VALUE *docolon(VALUE * sv, VALUE * pv);
68static VALUE *eval(void); 68static VALUE *eval(void);
69static VALUE *int_value(arith_t i); 69static VALUE *int_value(arith_t i);
70static VALUE *str_value(char *s); 70static VALUE *str_value(const char *s);
71static int nextarg(char *str); 71static int nextarg(const char *str);
72static int null(VALUE * v); 72static int null(VALUE * v);
73static int toarith(VALUE * v); 73static int toarith(VALUE * v);
74static void freev(VALUE * v); 74static 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
113static VALUE *str_value(char *s) 113static 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
175static int nextarg(char *str) 175static int nextarg(const char *str)
176{ 176{
177 if (*args == NULL) 177 if (*args == NULL)
178 return 0; 178 return 0;