sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 3946d1fcc91a4d265c5d718c090ce3fa21b646f2
parent 733b33f1c770a9081c41685d931d37f8e99b33f8
Author: FRIGN <dev@frign.de>
Date:   Thu, 22 Jan 2015 16:36:07 +0100

Use the EARGF()-macro in cut.c

Diffstat:
Mcut.c | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/cut.c b/cut.c @@ -159,14 +159,11 @@ main(int argc, char *argv[]) case 'c': case 'f': mode = ARGC(); - m = ARGF(); - if (!m) - usage(); + m = EARGF(usage()); parselist(m); break; case 'd': - if(!(d = ARGF())) - usage(); + d = EARGF(usage()); for (i = 1; i <= strlen(d); i++) if (fullrune(d, i)) break;