From de17ece1dbbb3a5399e82fb5b820bb44997f8ca4 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Tue, 10 Apr 2007 09:38:35 +0000 Subject: - use skip_non_whitespace() where appropriate --- coreutils/uniq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'coreutils/uniq.c') diff --git a/coreutils/uniq.c b/coreutils/uniq.c index bcdf44026..11a731aaa 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; -- cgit v1.2.3