From c8f045abffa9e0d6c6e6308483b92cdee95868de Mon Sep 17 00:00:00 2001 From: vodz Date: Tue, 31 Jan 2006 14:25:52 +0000 Subject: 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 --- coreutils/uudecode.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'coreutils/uudecode.c') 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) line_ptr++; /* Tolerate an overly long line to acomadate a possible exta '`' */ - if (strlen(line_ptr) < length) { + if (strlen(line_ptr) < (size_t)length) { bb_error_msg_and_die("Short file"); } while (length > 0) { /* Merge four 6 bit chars to three 8 bit chars */ - fputc(((line_ptr[0] - 0x20) & 077) << 2 | ((line_ptr[1] - 0x20) & 077) >> 4, dst_stream); + fputc(((line_ptr[0] - 0x20) & 077) << 2 | ((line_ptr[1] - 0x20) & 077) >> 4, dst_stream); line_ptr++; length--; if (length == 0) { @@ -83,7 +83,7 @@ static int read_stduu(FILE *src_stream, FILE *dst_stream) static int read_base64(FILE *src_stream, FILE *dst_stream) { - const char *base64_table = + static const char base64_table[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n"; char term_count = 0; -- cgit v1.2.3-55-g6feb