diff options
author | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-12-18 03:57:16 +0000 |
---|---|---|
committer | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-12-18 03:57:16 +0000 |
commit | c86ef1b2547856c114bdc16ed374585ea0a570e9 (patch) | |
tree | b85a425c19b299f5d8635599e11c78c96f12a4c2 /coreutils/uudecode.c | |
parent | b67a9cce48df6a3d83fe70ae3a6c8ca0bd8b7afd (diff) | |
download | busybox-w32-c86ef1b2547856c114bdc16ed374585ea0a570e9.tar.gz busybox-w32-c86ef1b2547856c114bdc16ed374585ea0a570e9.tar.bz2 busybox-w32-c86ef1b2547856c114bdc16ed374585ea0a570e9.zip |
Change calls to error_msg.* and strerror to use perror_msg.*.
git-svn-id: svn://busybox.net/trunk/busybox@1466 69ca8d6d-28ef-0310-b511-8ec308f3f277
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++; |