httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: cvs commit: apache-1.3/src/main util.c
Date Sat, 14 Mar 1998 21:28:31 GMT
I deliberately made those "unsigned" and not "unsigned char" because of
the atrocious code that gets generated by gcc.  What warning are you
getting? 

Dean

On 14 Mar 1998 ben@hyperreal.org wrote:

> ben         98/03/14 13:06:38
> 
>   Modified:    src/main util.c
>   Log:
>   Fix warnings.
>   
>   Revision  Changes    Path
>   1.102     +2 -2      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.101
>   retrieving revision 1.102
>   diff -u -r1.101 -r1.102
>   --- util.c	1998/03/14 04:52:51	1.101
>   +++ util.c	1998/03/14 21:06:37	1.102
>   @@ -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 c;
>   +    unsigned char 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 c;
>   +    unsigned char c;
>    
>        if (!partial) {
>    	char *colon = strchr(path, ':');
>   
>   
>   
> 


Mime
View raw message