aboutsummaryrefslogtreecommitdiff
path: root/coreutils/uniq.c
diff options
context:
space:
mode:
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 }