diff options
Diffstat (limited to 'ex.c')
| -rw-r--r-- | ex.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -155,7 +155,7 @@ erropen(void) void usage(void) { - printf(catgets(catd, 1, 1, "\ + ex_printf(catgets(catd, 1, 1, "\ Usage: %s [- | -s] [-l] [-L] [-R] [-r [file]] [-t tag]\n\ [-v] [-V] [-w size] [+cmd | -c cmd] file...\n"), progname); @@ -167,7 +167,7 @@ void needarg(int c) { erropen(); - printf(catgets(catd, 1, 2, + ex_printf(catgets(catd, 1, 2, "%s: option requires an argument -- %c\n"), progname, c); usage(); } @@ -176,7 +176,7 @@ void invopt(int c) { erropen(); - printf(catgets(catd, 1, 3, "%s: illegal option -- %c\n"), progname, c); + ex_printf(catgets(catd, 1, 3, "%s: illegal option -- %c\n"), progname, c); usage(); } @@ -400,8 +400,6 @@ main(register int ac, register char *av[]) while (ac) { if (av[0][0] == '+') { firstpat = &av[0][1]; - if (*firstpat == '\0') - needarg('+'); } else if (av[0][0] == '-') { arggroup: c = av[0][1]; @@ -438,7 +436,7 @@ arggroup: trace = fopen(tracef, "w"); #define tracbuf NULL if (trace == NULL) - printf(catgets(catd, 1, 4, + ex_printf(catgets(catd, 1, 4, "Trace create error\n")); else setbuf(trace, tracbuf); |
