diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-03-18 23:05:37 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-03-18 23:05:37 +0000 |
commit | 99a072d5240a31ae414b4fc031fa5744a227d35f (patch) | |
tree | 18f223c5277b41bc4a5b3ba526064e4f749ef2dc /coreutils/dos2unix.c | |
parent | 2523da259ce69cc3da5d7c02d2f8301f4de5408b (diff) | |
download | busybox-w32-99a072d5240a31ae414b4fc031fa5744a227d35f.tar.gz busybox-w32-99a072d5240a31ae414b4fc031fa5744a227d35f.tar.bz2 busybox-w32-99a072d5240a31ae414b4fc031fa5744a227d35f.zip |
- tito writes: this patch fixes some comments in dos2unix that are wrong
or that reports non existent features (that i've ripped out...)
Diffstat (limited to 'coreutils/dos2unix.c')
-rw-r--r-- | coreutils/dos2unix.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/coreutils/dos2unix.c b/coreutils/dos2unix.c index 8d6cd954d..c5021f9d0 100644 --- a/coreutils/dos2unix.c +++ b/coreutils/dos2unix.c | |||
@@ -7,8 +7,6 @@ | |||
7 | * All rights reserved. | 7 | * All rights reserved. |
8 | * | 8 | * |
9 | * dos2unix filters reading input from stdin and writing output to stdout. | 9 | * dos2unix filters reading input from stdin and writing output to stdout. |
10 | * Without arguments it reverts the format (e.i. if source is in UNIX format, | ||
11 | * output is in DOS format and vice versa). | ||
12 | * | 10 | * |
13 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. | 11 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. |
14 | */ | 12 | */ |
@@ -94,9 +92,9 @@ int dos2unix_main(int argc, char *argv[]) | |||
94 | 92 | ||
95 | /* See if we are supposed to be doing dos2unix or unix2dos */ | 93 | /* See if we are supposed to be doing dos2unix or unix2dos */ |
96 | if (argv[0][0]=='d') { | 94 | if (argv[0][0]=='d') { |
97 | ConvType = CT_DOS2UNIX; /*1*/ | 95 | ConvType = CT_DOS2UNIX; /*2*/ |
98 | } else { | 96 | } else { |
99 | ConvType = CT_UNIX2DOS; /*2*/ | 97 | ConvType = CT_UNIX2DOS; /*1*/ |
100 | } | 98 | } |
101 | /* -u and -d are mutally exclusive */ | 99 | /* -u and -d are mutally exclusive */ |
102 | bb_opt_complementally = "?:u--d:d--u"; | 100 | bb_opt_complementally = "?:u--d:d--u"; |