diff options
Diffstat (limited to 'coreutils/test.c')
-rw-r--r-- | coreutils/test.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/coreutils/test.c b/coreutils/test.c index 0bce66e6f..31ac87f34 100644 --- a/coreutils/test.c +++ b/coreutils/test.c | |||
@@ -452,10 +452,8 @@ static int getn(const char *s) | |||
452 | if (errno != 0) | 452 | if (errno != 0) |
453 | bb_error_msg_and_die("%s: out of range", s); | 453 | bb_error_msg_and_die("%s: out of range", s); |
454 | 454 | ||
455 | while (isspace(*p)) | 455 | /* p = bb_skip_whitespace(p); avoid const warning */ |
456 | p++; | 456 | if (*(bb_skip_whitespace(p))) |
457 | |||
458 | if (*p) | ||
459 | bb_error_msg_and_die("%s: bad number", s); | 457 | bb_error_msg_and_die("%s: bad number", s); |
460 | 458 | ||
461 | return (int) r; | 459 | return (int) r; |