Change calls to error_msg.* and strerror to use perror_msg.*.

This commit is contained in:
Matt Kraai
2000-12-18 03:57:16 +00:00
parent 0dab829977
commit 1fa1adea2a
52 changed files with 185 additions and 204 deletions

2
cut.c
View File

@@ -234,7 +234,7 @@ extern int cut_main(int argc, char **argv)
for (i = optind; i < argc; i++) {
file = fopen(argv[i], "r");
if (file == NULL) {
error_msg("%s: %s\n", argv[i], strerror(errno));
perror_msg("%s", argv[i]);
} else {
cut_file(file);
fclose(file);