dgaudet 98/03/14 13:27:11
Modified: src/main util.c Log: Ben does this give you warnings? It generates better code -- otherwise the compiler is stuck doing a bunch of byte -> int extensions. This way only one extension occurs. Revision Changes Path 1.103 +3 -3 apache-1.3/src/main/util.c Index: util.c =================================================================== RCS file: /export/home/cvs/apache-1.3/src/main/util.c,v retrieving revision 1.102 retrieving revision 1.103 diff -u -r1.102 -r1.103 --- util.c 1998/03/14 21:06:37 1.102 +++ util.c 1998/03/14 21:27:10 1.103 @@ -1143,7 +1143,7 @@ static const char c2x_table[] = "0123456789abcdef"; -static ap_inline char *c2x(unsigned char what, char *where) +static ap_inline unsigned char *c2x(unsigned what, unsigned char *where) { *where++ = '%'; *where++ = c2x_table[what >> 4]; @@ -1171,7 +1171,7 @@ char *copy = palloc(p, 3 * strlen(segment) + 1); const unsigned char *s = (const unsigned char *)segment; unsigned char *d = (unsigned char *)copy; - unsigned char c; + unsigned c; while ((c = *s)) { if (TEST_CHAR(c, T_ESCAPE_PATH_SEGMENT)) { @@ -1191,7 +1191,7 @@ char *copy = palloc(p, 3 * strlen(path) + 3); const unsigned char *s = (const unsigned char *)path; unsigned char *d = (unsigned char *)copy; - unsigned char c; + unsigned c; if (!partial) { char *colon = strchr(path, ':');