diff options
author | Denis Vlasenko | 2006-09-27 23:31:08 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-09-27 23:31:08 +0000 |
commit | ce97960a6e7da4d9fc7a003c9138aec5e4e55a96 (patch) | |
tree | c85ed57fad4e98e833f16d5657efce53acc79895 /coreutils | |
parent | c16bd212e341598452b7885d9e4ac2064f417673 (diff) | |
download | busybox-ce97960a6e7da4d9fc7a003c9138aec5e4e55a96.zip busybox-ce97960a6e7da4d9fc7a003c9138aec5e4e55a96.tar.gz |
usage.h: remove ugly tricks. We have USE_FEATURE_xxx now.
Few bugs are now exposed...
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/seq.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/coreutils/seq.c b/coreutils/seq.c index 79fafbc..f2b4706 100644 --- a/coreutils/seq.c +++ b/coreutils/seq.c @@ -18,11 +18,11 @@ int seq_main(int argc, char **argv) first = increment = 1; switch (argc) { case 4: - increment=atof(argv[2]); + increment = atof(argv[2]); case 3: - first=atof(argv[1]); + first = atof(argv[1]); case 2: - last=atof(argv[argc -1]); + last = atof(argv[argc-1]); break; default: bb_show_usage(); @@ -30,8 +30,8 @@ int seq_main(int argc, char **argv) /* You should note that this is pos-5.0.91 semantics, -- FK. */ for (i = first; - (increment > 0 && i <= last) || (increment < 0 && i >=last); - i += increment) + (increment > 0 && i <= last) || (increment < 0 && i >=last); + i += increment) { printf("%g\n", i); } |