diff options
author | Eric Blake <ebb9@byu.net> | 2009-08-31 21:49:41 +1000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-08-31 21:49:41 +1000 |
commit | a5cdd4e62b0b29c5dfe69e4f2183c11dde6f5054 (patch) | |
tree | 61ced6f3b7cbaac8a6caced98d0573ef99cf4e95 /src | |
parent | [BUILTIN] Add another missing LC_COLLATE to mkbuiltins (diff) | |
download | dash-a5cdd4e62b0b29c5dfe69e4f2183c11dde6f5054.tar.gz dash-a5cdd4e62b0b29c5dfe69e4f2183c11dde6f5054.zip |
[BUILTIN] Avoid compiler warnings on isdigit
Pass correct type to ctype macro. Signed-off-by: Eric Blake <ebb9@byu.net> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r-- | src/miscbltin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/miscbltin.c b/src/miscbltin.c index be746b2..ec9872d 100644 --- a/src/miscbltin.c +++ b/src/miscbltin.c @@ -237,7 +237,7 @@ umaskcmd(int argc, char **argv) } else { int new_mask; - if (isdigit(*ap)) { + if (isdigit((unsigned char) *ap)) { new_mask = 0; do { if (*ap >= '8' || *ap < '0') |