aboutsummaryrefslogtreecommitdiff
path: root/coreutils/uniq.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-06-18 20:20:07 +0000
committerRob Landley <rob@landley.net>2006-06-18 20:20:07 +0000
commitea224be6aa8fed5486376d3021a4cb911e935106 (patch)
tree38d6c5d2d53841e3f4e2702521e3b03235c51017 /coreutils/uniq.c
parent14d7065ef1eb836d20e13bc25d1b13f0e76185ac (diff)
downloadbusybox-ea224be6aa8fed5486376d3021a4cb911e935106.tar.gz
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.c6
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 @@
/* BB_AUDIT SUSv3 compliant */
/* http://www.opengroup.org/onlinepubs/007904975/utilities/uniq.html */
-#include <stdio.h>
-#include <stdlib.h>
+#include "busybox.h"
#include <string.h>
#include <ctype.h>
#include <unistd.h>
-#include "busybox.h"
static const char uniq_opts[] = "f:s:" "cdu\0\1\2\4";
@@ -77,7 +75,7 @@ int uniq_main(int argc, char **argv)
while ((s1 = bb_get_chomped_line_from_file(in)) != NULL) {
e1 = s1;
for (i=skip_fields ; i ; i--) {
- e1 = bb_skip_whitespace(e1);
+ e1 = skip_whitespace(e1);
while (*e1 && !isspace(*e1)) {
++e1;
}