[hackers] [sbase] Use the EARGF()-macro in cut.c || FRIGN

From: <git_AT_suckless.org>
Date: Thu, 22 Jan 2015 16:44:56 +0100 (CET)

commit a24b6573b89ebb90de66a806c0556924fefc42b7
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 Thu Jan 22 2015 - 16:44:56 CET

This archive was generated by hypermail 2.3.0 : Thu Jan 22 2015 - 16:48:09 CET