From: Ted Lemon Date: Tue, 20 Jun 2000 19:59:50 +0000 (+0000) Subject: Make from64 unsigned (not sure this matters). X-Git-Tag: V3-BETA-2-PATCH-1~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b474b5b4a334a52f8eaa72427c235c9726d2229;p=thirdparty%2Fdhcp.git Make from64 unsigned (not sure this matters). --- diff --git a/common/parse.c b/common/parse.c index 2dc661d34..a8650919b 100644 --- a/common/parse.c +++ b/common/parse.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: parse.c,v 1.74 2000/05/17 16:04:03 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: parse.c,v 1.75 2000/06/20 19:59:50 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -1139,18 +1139,19 @@ int parse_base64 (data, cfile) const char *val; int i, j; unsigned acc = 0; - static char from64 [] = {64, 64, 64, 64, 64, 64, 64, 64, /* \"#$%&' */ - 64, 64, 64, 62, 64, 64, 64, 63, /* ()*+,-./ */ - 52, 53, 54, 55, 56, 57, 58, 59, /* 01234567 */ - 60, 61, 64, 64, 64, 64, 64, 64, /* 90:;<=>? */ - 64, 0, 1, 2, 3, 4, 5, 6, /* @ABCDEFG */ - 7, 8, 9, 10, 11, 12, 13, 14, /* HIJKLMNO */ - 15, 16, 17, 18, 19, 20, 21, 22, /* PQRSTUVW */ - 23, 24, 25, 64, 64, 64, 64, 64, /* XYZ[\]^_ */ - 64, 26, 27, 28, 29, 30, 31, 32, /* 'abcdefg */ - 33, 34, 35, 36, 37, 38, 39, 40, /* hijklmno */ - 41, 42, 43, 44, 45, 46, 47, 48, /* pqrstuvw */ - 59, 50, 51, 64, 64, 64, 64, 64};/* xyz{|}~ */ + static unsigned char + from64 [] = {64, 64, 64, 64, 64, 64, 64, 64, /* \"#$%&' */ + 64, 64, 64, 62, 64, 64, 64, 63, /* ()*+,-./ */ + 52, 53, 54, 55, 56, 57, 58, 59, /* 01234567 */ + 60, 61, 64, 64, 64, 64, 64, 64, /* 90:;<=>? */ + 64, 0, 1, 2, 3, 4, 5, 6, /* @ABCDEFG */ + 7, 8, 9, 10, 11, 12, 13, 14, /* HIJKLMNO */ + 15, 16, 17, 18, 19, 20, 21, 22, /* PQRSTUVW */ + 23, 24, 25, 64, 64, 64, 64, 64, /* XYZ[\]^_ */ + 64, 26, 27, 28, 29, 30, 31, 32, /* 'abcdefg */ + 33, 34, 35, 36, 37, 38, 39, 40, /* hijklmno */ + 41, 42, 43, 44, 45, 46, 47, 48, /* pqrstuvw */ + 59, 50, 51, 64, 64, 64, 64, 64}; /* xyz{|}~ */ token = next_token (&val, cfile); if (token == STRING) {