diff options
author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-06-18 20:20:07 +0000 |
---|---|---|
committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-06-18 20:20:07 +0000 |
commit | aa074b9c43f69aa62adb15e3342a0ef63f625678 (patch) | |
tree | 38d6c5d2d53841e3f4e2702521e3b03235c51017 /coreutils/test.c | |
parent | e4d675d55e6d97662493d5696201db55a144db5e (diff) | |
download | busybox-w32-aa074b9c43f69aa62adb15e3342a0ef63f625678.tar.gz busybox-w32-aa074b9c43f69aa62adb15e3342a0ef63f625678.tar.bz2 busybox-w32-aa074b9c43f69aa62adb15e3342a0ef63f625678.zip |
skip_whitespace() shouldn't claim its return value is const, it doesn't know
that and callers wind up typecasting it back.
git-svn-id: svn://busybox.net/trunk/busybox@15420 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/test.c')
-rw-r--r-- | coreutils/test.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/coreutils/test.c b/coreutils/test.c index 4d920380d..ab3793627 100644 --- a/coreutils/test.c +++ b/coreutils/test.c | |||
@@ -19,14 +19,12 @@ | |||
19 | * "This program is in the Public Domain." | 19 | * "This program is in the Public Domain." |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <sys/types.h> | 22 | #include "busybox.h" |
23 | #include <unistd.h> | 23 | #include <unistd.h> |
24 | #include <ctype.h> | 24 | #include <ctype.h> |
25 | #include <errno.h> | 25 | #include <errno.h> |
26 | #include <stdlib.h> | ||
27 | #include <string.h> | 26 | #include <string.h> |
28 | #include <setjmp.h> | 27 | #include <setjmp.h> |
29 | #include "busybox.h" | ||
30 | 28 | ||
31 | /* test(1) accepts the following grammar: | 29 | /* test(1) accepts the following grammar: |
32 | oexpr ::= aexpr | aexpr "-o" oexpr ; | 30 | oexpr ::= aexpr | aexpr "-o" oexpr ; |
@@ -482,8 +480,7 @@ static arith_t getn(const char *s) | |||
482 | if (errno != 0) | 480 | if (errno != 0) |
483 | syntax(s, "out of range"); | 481 | syntax(s, "out of range"); |
484 | 482 | ||
485 | /* p = bb_skip_whitespace(p); avoid const warning */ | 483 | if (*(skip_whitespace(p))) |
486 | if (*(bb_skip_whitespace(p))) | ||
487 | syntax(s, "bad number"); | 484 | syntax(s, "bad number"); |
488 | 485 | ||
489 | return r; | 486 | return r; |