diff options
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; |