projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hush_test: stop mixing tabs/spaces for indentation
[oweals/busybox.git]
/
coreutils
/
uudecode.c
diff --git
a/coreutils/uudecode.c
b/coreutils/uudecode.c
index 4c619dec5944f84ddff9f152ce95cbea18b56231..0298a4bdb7ae6afb2d5ddf7f2594fec2f624fa5d 100644
(file)
--- a/
coreutils/uudecode.c
+++ b/
coreutils/uudecode.c
@@
-18,7
+18,7
@@
static void read_stduu(FILE *src_stream, FILE *dst_stream)
{
char *line;
{
char *line;
- while ((line = xmalloc_getline(src_stream)) != NULL) {
+ while ((line = xmalloc_
f
getline(src_stream)) != NULL) {
int encoded_len, str_len;
char *line_ptr, *dst;
int encoded_len, str_len;
char *line_ptr, *dst;
@@
-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, 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;
{
FILE *src_stream;
char *outname = NULL;
@@
-151,8
+151,8
@@
int uudecode_main(int argc ATTRIBUTE_UNUSED, char **argv)
src_stream = xfopen_stdin(*argv);
/* Search for the start of the encoding */
src_stream = xfopen_stdin(*argv);
/* Search for the start of the encoding */
- while ((line = xmalloc_getline(src_stream)) != NULL) {
- void (*decode_fn_ptr)(FILE *
src, FILE *
dst);
+ while ((line = xmalloc_
f
getline(src_stream)) != NULL) {
+ void (*decode_fn_ptr)(FILE *
src, FILE *
dst);
char *line_ptr;
FILE *dst_stream;
int mode;
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 = 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);
fchmod(fileno(dst_stream), mode & (S_IRWXU | S_IRWXG | S_IRWXO));
}
free(line);