diff options
author | Rob Landley <rob@landley.net> | 2006-06-18 20:20:07 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-06-18 20:20:07 +0000 |
commit | ea224be6aa8fed5486376d3021a4cb911e935106 (patch) | |
tree | 38d6c5d2d53841e3f4e2702521e3b03235c51017 /coreutils/uniq.c | |
parent | 14d7065ef1eb836d20e13bc25d1b13f0e76185ac (diff) | |
download | busybox-w32-ea224be6aa8fed5486376d3021a4cb911e935106.tar.gz busybox-w32-ea224be6aa8fed5486376d3021a4cb911e935106.tar.bz2 busybox-w32-ea224be6aa8fed5486376d3021a4cb911e935106.zip |
skip_whitespace() shouldn't claim its return value is const, it doesn't know
that and callers wind up typecasting it back.
Diffstat (limited to 'coreutils/uniq.c')
-rw-r--r-- | coreutils/uniq.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/coreutils/uniq.c b/coreutils/uniq.c index be3d75c3a..956c50796 100644 --- a/coreutils/uniq.c +++ b/coreutils/uniq.c | |||
@@ -10,12 +10,10 @@ | |||
10 | /* BB_AUDIT SUSv3 compliant */ | 10 | /* BB_AUDIT SUSv3 compliant */ |
11 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/uniq.html */ | 11 | /* http://www.opengroup.org/onlinepubs/007904975/utilities/uniq.html */ |
12 | 12 | ||
13 | #include <stdio.h> | 13 | #include "busybox.h" |
14 | #include <stdlib.h> | ||
15 | #include <string.h> | 14 | #include <string.h> |
16 | #include <ctype.h> | 15 | #include <ctype.h> |
17 | #include <unistd.h> | 16 | #include <unistd.h> |
18 | #include "busybox.h" | ||
19 | 17 | ||
20 | static const char uniq_opts[] = "f:s:" "cdu\0\1\2\4"; | 18 | static const char uniq_opts[] = "f:s:" "cdu\0\1\2\4"; |
21 | 19 | ||
@@ -77,7 +75,7 @@ int uniq_main(int argc, char **argv) | |||
77 | while ((s1 = bb_get_chomped_line_from_file(in)) != NULL) { | 75 | while ((s1 = bb_get_chomped_line_from_file(in)) != NULL) { |
78 | e1 = s1; | 76 | e1 = s1; |
79 | for (i=skip_fields ; i ; i--) { | 77 | for (i=skip_fields ; i ; i--) { |
80 | e1 = bb_skip_whitespace(e1); | 78 | e1 = skip_whitespace(e1); |
81 | while (*e1 && !isspace(*e1)) { | 79 | while (*e1 && !isspace(*e1)) { |
82 | ++e1; | 80 | ++e1; |
83 | } | 81 | } |