]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Make from64 unsigned (not sure this matters).
authorTed Lemon <source@isc.org>
Tue, 20 Jun 2000 19:59:50 +0000 (19:59 +0000)
committerTed Lemon <source@isc.org>
Tue, 20 Jun 2000 19:59:50 +0000 (19:59 +0000)
common/parse.c

index 2dc661d3457eecb7b4a349f660363d0f44031e35..a8650919b48c2e79cfe7bb6d67f594b78b08b96b 100644 (file)
@@ -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) {