summaryrefslogtreecommitdiffhomepage
path: root/coreutils/seq.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-09-27 23:31:08 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-09-27 23:31:08 +0000
commitce97960a6e7da4d9fc7a003c9138aec5e4e55a96 (patch)
treec85ed57fad4e98e833f16d5657efce53acc79895 /coreutils/seq.c
parentc16bd212e341598452b7885d9e4ac2064f417673 (diff)
usage.h: remove ugly tricks. We have USE_FEATURE_xxx now.
Few bugs are now exposed...
Diffstat (limited to 'coreutils/seq.c')
-rw-r--r--coreutils/seq.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/coreutils/seq.c b/coreutils/seq.c
index 79fafbc8b..f2b4706f2 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);
}