Use the EARGF()-macro in cut.c

This commit is contained in:
FRIGN 2015-01-22 16:36:07 +01:00
parent 733b33f1c7
commit 3946d1fcc9

7
cut.c
View File

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