diff options
author | Matt Kraai <kraai@debian.org> | 2000-12-18 03:57:16 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2000-12-18 03:57:16 +0000 |
commit | 1fa1adea2ae16d4f4c82d7466905dce4c6edd5f5 (patch) | |
tree | b85a425c19b299f5d8635599e11c78c96f12a4c2 /coreutils/uudecode.c | |
parent | 0dab82997777bffb95d01d68e1628ee79207a03d (diff) | |
download | busybox-w32-1fa1adea2ae16d4f4c82d7466905dce4c6edd5f5.tar.gz busybox-w32-1fa1adea2ae16d4f4c82d7466905dce4c6edd5f5.tar.bz2 busybox-w32-1fa1adea2ae16d4f4c82d7466905dce4c6edd5f5.zip |
Change calls to error_msg.* and strerror to use perror_msg.*.
Diffstat (limited to 'coreutils/uudecode.c')
-rw-r--r-- | coreutils/uudecode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c index ff4a9d9e6..279b9d6ce 100644 --- a/coreutils/uudecode.c +++ b/coreutils/uudecode.c | |||
@@ -257,7 +257,7 @@ static int decode (const char *inname, | |||
257 | && (freopen (outname, "w", stdout) == NULL | 257 | && (freopen (outname, "w", stdout) == NULL |
258 | || chmod (outname, mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | 258 | || chmod (outname, mode & (S_IRWXU | S_IRWXG | S_IRWXO)) |
259 | )) { | 259 | )) { |
260 | error_msg("%s: %s %s\n", outname, inname, strerror(errno)); /* */ | 260 | perror_msg("%s", outname); /* */ |
261 | return FALSE; | 261 | return FALSE; |
262 | } | 262 | } |
263 | 263 | ||
@@ -302,7 +302,7 @@ int uudecode_main (int argc, | |||
302 | if (decode (argv[optind], outname) != 0) | 302 | if (decode (argv[optind], outname) != 0) |
303 | exit_status = FALSE; | 303 | exit_status = FALSE; |
304 | } else { | 304 | } else { |
305 | error_msg("%s: %s\n", argv[optind], strerror(errno)); | 305 | perror_msg("%s", argv[optind]); |
306 | exit_status = EXIT_FAILURE; | 306 | exit_status = EXIT_FAILURE; |
307 | } | 307 | } |
308 | optind++; | 308 | optind++; |