aboutsummaryrefslogtreecommitdiff
path: root/coreutils/uudecode.c
diff options
context:
space:
mode:
authorvodz <vodz@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-01-31 14:25:52 +0000
committervodz <vodz@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-01-31 14:25:52 +0000
commitc8f045abffa9e0d6c6e6308483b92cdee95868de (patch)
tree8448102664334cc678591c09cb847529e36b0cc4 /coreutils/uudecode.c
parentb328ff880bb8955b2932ad8a9332ed9dee505bbf (diff)
downloadbusybox-w32-c8f045abffa9e0d6c6e6308483b92cdee95868de.tar.gz
busybox-w32-c8f045abffa9e0d6c6e6308483b92cdee95868de.tar.bz2
busybox-w32-c8f045abffa9e0d6c6e6308483b92cdee95868de.zip
more better for me signed<->unsigned and the const keyword usage
git-svn-id: svn://busybox.net/trunk/busybox@13760 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/uudecode.c')
-rw-r--r--coreutils/uudecode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c
index 60bf7d8c1..5823afd90 100644
--- a/coreutils/uudecode.c
+++ b/coreutils/uudecode.c
@@ -52,13 +52,13 @@ static int read_stduu(FILE *src_stream, FILE *dst_stream)
52 52
53 line_ptr++; 53 line_ptr++;
54 /* Tolerate an overly long line to acomadate a possible exta '`' */ 54 /* Tolerate an overly long line to acomadate a possible exta '`' */
55 if (strlen(line_ptr) < length) { 55 if (strlen(line_ptr) < (size_t)length) {
56 bb_error_msg_and_die("Short file"); 56 bb_error_msg_and_die("Short file");
57 } 57 }
58 58
59 while (length > 0) { 59 while (length > 0) {
60 /* Merge four 6 bit chars to three 8 bit chars */ 60 /* Merge four 6 bit chars to three 8 bit chars */
61 fputc(((line_ptr[0] - 0x20) & 077) << 2 | ((line_ptr[1] - 0x20) & 077) >> 4, dst_stream); 61 fputc(((line_ptr[0] - 0x20) & 077) << 2 | ((line_ptr[1] - 0x20) & 077) >> 4, dst_stream);
62 line_ptr++; 62 line_ptr++;
63 length--; 63 length--;
64 if (length == 0) { 64 if (length == 0) {
@@ -83,7 +83,7 @@ static int read_stduu(FILE *src_stream, FILE *dst_stream)
83 83
84static int read_base64(FILE *src_stream, FILE *dst_stream) 84static int read_base64(FILE *src_stream, FILE *dst_stream)
85{ 85{
86 const char *base64_table = 86 static const char base64_table[] =
87 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n"; 87 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n";
88 char term_count = 0; 88 char term_count = 0;
89 89