Mercurial > hg > toybox
diff lib/args.c @ 156:1e8f4b05cb65
Remove trailing whitespace (thanks to Charlie Shepherd), and a couple comment
tweaks.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 15 Nov 2007 18:30:30 -0600 |
parents | 1fbc50374a30 |
children | ed26d3529575 |
line wrap: on
line diff
--- a/lib/args.c Tue Nov 06 23:24:56 2007 +0000 +++ b/lib/args.c Thu Nov 15 18:30:30 2007 -0600 @@ -38,7 +38,7 @@ // -abc means -a -b -c /* This uses a getopt-like option string, but not getopt() itself. - * + * * Each option in options corresponds to a bit position in the return * value (last argument is (1<<0), the next to last is (1<<1) and so on). * If the option isn't seen in argv[] its bit is 0. @@ -57,7 +57,7 @@ * flags = 5, toy[0]=NULL, toy[1]="fruit"; */ -// +// struct opts { struct opts *next; char c; @@ -316,7 +316,7 @@ for (;;) { // Are there no more files? - if (!*filename) + if (!*filename) return (fd == -1) ? iswrite : -1; // A filename of "-" means stdin.