[hackers] [sbase] Use the EARGF()-macro in cut.c || FRIGN
commit 3946d1fcc91a4d265c5d718c090ce3fa21b646f2
Author: FRIGN <dev_AT_frign.de>
Date: Thu Jan 22 16:36:07 2015 +0100
Use the EARGF()-macro in cut.c
diff --git a/cut.c b/cut.c
index 50c2695..0e74ccd 100644
--- a/cut.c
+++ b/cut.c
_AT_@ -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;
Received on Tue Mar 24 2015 - 23:53:12 CET
This archive was generated by hypermail 2.3.0
: Wed Mar 25 2015 - 00:01:49 CET