Trim help text a bit more
[oweals/busybox.git] / coreutils / uuencode.c
index c1458f7fb7c5bbdd24ac70a1436f8073c5de7204..e19f996764667f9bf5470e67377577bf187c4ead 100644 (file)
@@ -15,7 +15,7 @@ enum {
        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;
@@ -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 */
-       if (getopt32(argc, argv, "m")) {
+       if (getopt32(argv, "m")) {
                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);
-               putchar('\n');
+               bb_putchar('\n');
                if (tbl == bb_uuenc_tbl_std) {
-                       putchar(tbl[size]);
+                       bb_putchar(tbl[size]);
                }
                fflush(stdout);
                xwrite(STDOUT_FILENO, dst_buf, 4 * ((size + 2) / 3));