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

View File

@ -257,7 +257,7 @@ static int decode (const char *inname,
&& (freopen (outname, "w", stdout) == NULL
|| chmod (outname, mode & (S_IRWXU | S_IRWXG | S_IRWXO))
)) {
error_msg("%s: %s %s\n", outname, inname, strerror(errno)); /* */
perror_msg("%s", outname); /* */
return FALSE;
}
@ -302,7 +302,7 @@ int uudecode_main (int argc,
if (decode (argv[optind], outname) != 0)
exit_status = FALSE;
} else {
error_msg("%s: %s\n", argv[optind], strerror(errno));
perror_msg("%s", argv[optind]);
exit_status = EXIT_FAILURE;
}
optind++;