projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Trim help text a bit more
[oweals/busybox.git]
/
coreutils
/
uuencode.c
diff --git
a/coreutils/uuencode.c
b/coreutils/uuencode.c
index c1458f7fb7c5bbdd24ac70a1436f8073c5de7204..e19f996764667f9bf5470e67377577bf187c4ead 100644
(file)
--- a/
coreutils/uuencode.c
+++ b/
coreutils/uuencode.c
@@
-15,7
+15,7
@@
enum {
DST_BUF_SIZE = 4 * ((SRC_BUF_SIZE + 2) / 3),
};
DST_BUF_SIZE = 4 * ((SRC_BUF_SIZE + 2) / 3),
};
-int uuencode_main(int argc, char **argv);
+int uuencode_main(int argc, char **argv)
MAIN_EXTERNALLY_VISIBLE
;
int uuencode_main(int argc, char **argv)
{
struct stat stat_buf;
int uuencode_main(int argc, char **argv)
{
struct stat stat_buf;
@@
-28,7
+28,7
@@
int uuencode_main(int argc, char **argv)
tbl = bb_uuenc_tbl_std;
mode = 0666 & ~umask(0666);
opt_complementary = "-1:?2"; /* must have 1 or 2 args */
tbl = bb_uuenc_tbl_std;
mode = 0666 & ~umask(0666);
opt_complementary = "-1:?2"; /* must have 1 or 2 args */
- if (getopt32(arg
c, arg
v, "m")) {
+ if (getopt32(argv, "m")) {
tbl = bb_uuenc_tbl_base64;
}
argv += optind;
tbl = bb_uuenc_tbl_base64;
}
argv += optind;
@@
-48,9
+48,9
@@
int uuencode_main(int argc, char **argv)
bb_perror_msg_and_die(bb_msg_read_error);
/* Encode the buffer we just read in */
bb_uuencode(dst_buf, src_buf, size, tbl);
bb_perror_msg_and_die(bb_msg_read_error);
/* Encode the buffer we just read in */
bb_uuencode(dst_buf, src_buf, size, tbl);
- putchar('\n');
+
bb_
putchar('\n');
if (tbl == bb_uuenc_tbl_std) {
if (tbl == bb_uuenc_tbl_std) {
- putchar(tbl[size]);
+
bb_
putchar(tbl[size]);
}
fflush(stdout);
xwrite(STDOUT_FILENO, dst_buf, 4 * ((size + 2) / 3));
}
fflush(stdout);
xwrite(STDOUT_FILENO, dst_buf, 4 * ((size + 2) / 3));