diff options
| author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-04-10 09:38:35 +0000 |
|---|---|---|
| committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-04-10 09:38:35 +0000 |
| commit | de17ece1dbbb3a5399e82fb5b820bb44997f8ca4 (patch) | |
| tree | bf440665c9a99743cc22195351b0eec490ab8204 /coreutils | |
| parent | 8b1fab2879d57b044342ee3fece0825d4d3a509a (diff) | |
| download | busybox-w32-de17ece1dbbb3a5399e82fb5b820bb44997f8ca4.tar.gz busybox-w32-de17ece1dbbb3a5399e82fb5b820bb44997f8ca4.tar.bz2 busybox-w32-de17ece1dbbb3a5399e82fb5b820bb44997f8ca4.zip | |
- use skip_non_whitespace() where appropriate
Diffstat (limited to 'coreutils')
| -rw-r--r-- | coreutils/uniq.c | 4 |
1 files changed, 1 insertions, 3 deletions
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) | |||
| 75 | e1 = s1; | 75 | e1 = s1; |
| 76 | for (i = skip_fields; i; i--) { | 76 | for (i = skip_fields; i; i--) { |
| 77 | e1 = skip_whitespace(e1); | 77 | e1 = skip_whitespace(e1); |
| 78 | while (*e1 && !isspace(*e1)) { | 78 | e1 = skip_non_whitespace(e1); |
| 79 | ++e1; | ||
| 80 | } | ||
| 81 | } | 79 | } |
| 82 | for (i = skip_chars; *e1 && i; i--) { | 80 | for (i = skip_chars; *e1 && i; i--) { |
| 83 | ++e1; | 81 | ++e1; |
