X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=coreutils%2Fuudecode.c;h=0298a4bdb7ae6afb2d5ddf7f2594fec2f624fa5d;hb=eab40e58858d01372b5d74b7330be2d7b1c7fc75;hp=c06747622f597a1da677905e1c366b3b18a2f975;hpb=8ee649a02e97e9d4e770a8138ba94c0f3ddd8055;p=oweals%2Fbusybox.git diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c index c06747622..0298a4bdb 100644 --- a/coreutils/uudecode.c +++ b/coreutils/uudecode.c @@ -136,7 +136,7 @@ static void read_base64(FILE *src_stream, FILE *dst_stream) } int uudecode_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; -int uudecode_main(int argc ATTRIBUTE_UNUSED, char **argv) +int uudecode_main(int argc UNUSED_PARAM, char **argv) { FILE *src_stream; char *outname = NULL; @@ -152,7 +152,7 @@ int uudecode_main(int argc ATTRIBUTE_UNUSED, char **argv) /* Search for the start of the encoding */ while ((line = xmalloc_fgetline(src_stream)) != NULL) { - void (*decode_fn_ptr)(FILE * src, FILE * dst); + void (*decode_fn_ptr)(FILE *src, FILE *dst); char *line_ptr; FILE *dst_stream; int mode; @@ -179,7 +179,7 @@ int uudecode_main(int argc ATTRIBUTE_UNUSED, char **argv) } dst_stream = stdout; if (NOT_LONE_DASH(outname)) { - dst_stream = xfopen(outname, "w"); + dst_stream = xfopen_for_write(outname); fchmod(fileno(dst_stream), mode & (S_IRWXU | S_IRWXG | S_IRWXO)); } free(line);