Use errorMsg rather than fprintf.

This commit is contained in:
Matt Kraai
2000-07-14 01:51:25 +00:00
parent 4ac6cb534d
commit d537a95fdb
81 changed files with 391 additions and 473 deletions

5
tail.c
View File

@@ -375,7 +375,7 @@ extern int tail_main(int argc, char **argv)
usage(tail_usage);
default:
if ((n_units = atoi(&argv[i][1])) < 1) {
fprintf(stderr, "tail: invalid option -- %c\n", opt);
errorMsg("invalid option -- %c\n", opt);
usage(tail_usage);
}
}
@@ -386,8 +386,7 @@ extern int tail_main(int argc, char **argv)
if (i + 1 < argc) {
if (forever) {
fprintf(stderr,
"tail: option -f is invalid with multiple files\n");
errorMsg("option -f is invalid with multiple files\n");
usage(tail_usage);
}
print_headers = 1;