summaryrefslogtreecommitdiff
path: root/coreutils/uniq.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2007-04-10 09:38:35 +0000
committerBernhard Reutner-Fischer2007-04-10 09:38:35 +0000
commitde17ece1dbbb3a5399e82fb5b820bb44997f8ca4 (patch)
treebf440665c9a99743cc22195351b0eec490ab8204 /coreutils/uniq.c
parent8b1fab2879d57b044342ee3fece0825d4d3a509a (diff)
downloadbusybox-de17ece1dbbb3a5399e82fb5b820bb44997f8ca4.zip
busybox-de17ece1dbbb3a5399e82fb5b820bb44997f8ca4.tar.gz
- use skip_non_whitespace() where appropriate
Diffstat (limited to 'coreutils/uniq.c')
-rw-r--r--coreutils/uniq.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/coreutils/uniq.c b/coreutils/uniq.c
index bcdf440..11a731a 100644
--- a/coreutils/uniq.c
+++ b/coreutils/uniq.c
@@ -75,9 +75,7 @@ int uniq_main(int argc, char **argv)
e1 = s1;
for (i = skip_fields; i; i--) {
e1 = skip_whitespace(e1);
- while (*e1 && !isspace(*e1)) {
- ++e1;
- }
+ e1 = skip_non_whitespace(e1);
}
for (i = skip_chars; *e1 && i; i--) {
++e1;