X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=coreutils%2Fuuencode.c;h=35a533309f84e96f6116dda3bda09aead4b4060e;hb=ceeff7381929930fe8d7e33543e285d5fdcf1c68;hp=73098ba2648db9c703acf0a3c3478a9674e030ef;hpb=dd19c6990496023fe23fefef8f1798740f7d39c6;p=oweals%2Fbusybox.git diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c index 73098ba26..35a533309 100644 --- a/coreutils/uuencode.c +++ b/coreutils/uuencode.c @@ -22,23 +22,23 @@ /* Hacked to work with BusyBox by Alfred M. Szmidt */ -#include "busybox.h" #include #include #include #include +#include "busybox.h" #define RW (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH) static void encode __P ((void)); /* Pointer to the translation table we currently use. */ -const char *trans_ptr; +static const char *trans_ptr; /* The two currently defined translation tables. The first is the standard uuencoding, the second is base64 encoding. */ -const char uu_std[64] = { +static const char uu_std[64] = { '`', '!', '"', '#', '$', '%', '&', '\'', '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', @@ -49,7 +49,7 @@ const char uu_std[64] = { 'X', 'Y', 'Z', '[', '\\', ']', '^', '_' }; -const char uu_base64[64] = { +static const char uu_base64[64] = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', @@ -167,7 +167,7 @@ int uuencode_main (int argc, break; default: - usage(uuencode_usage); + show_usage(); } } @@ -188,7 +188,7 @@ int uuencode_main (int argc, case 0: default: - usage(uuencode_usage); + show_usage(); } printf("begin%s %o %s\n", trans_ptr == uu_std ? "" : "-base64",