aboutsummaryrefslogtreecommitdiff
path: root/coreutils/uniq.c
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-06-18 20:20:07 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-06-18 20:20:07 +0000
commitaa074b9c43f69aa62adb15e3342a0ef63f625678 (patch)
tree38d6c5d2d53841e3f4e2702521e3b03235c51017 /coreutils/uniq.c
parente4d675d55e6d97662493d5696201db55a144db5e (diff)
downloadbusybox-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/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 @@
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
20static const char uniq_opts[] = "f:s:" "cdu\0\1\2\4"; 18static 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 }