httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/modules/filters mod_deflate.c
Date Wed, 29 May 2002 14:26:00 GMT
trawick     02/05/29 07:26:00

  Modified:    modules/filters mod_deflate.c
  Log:
  get mod_deflate to compile with compilers that care about the
  signed-ness of char *
  
  it looks like it should work fine, but it is untested
  
  Revision  Changes    Path
  1.11      +3 -3      httpd-2.0/modules/filters/mod_deflate.c
  
  Index: mod_deflate.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/filters/mod_deflate.c,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- mod_deflate.c	29 May 2002 10:27:05 -0000	1.10
  +++ mod_deflate.c	29 May 2002 14:26:00 -0000	1.11
  @@ -149,17 +149,17 @@
   
   /* Inputs a string and returns a long.
    */
  -static unsigned long getLong(char *string)
  +static unsigned long getLong(unsigned char *string)
   {
       int n = 3;
       unsigned long x = 0;
   
       while (n) {
  -        x |= (unsigned long)((unsigned char)string[n--]) & 0xff;
  +        x |= (unsigned long)(string[n--]) & 0xff;
           x <<= 8;
       }
   
  -    x |= (unsigned long)((unsigned char)string[0]) & 0xff;
  +    x |= (unsigned long)(string[0]) & 0xff;
       return x;
   }
   
  
  
  

Mime
View raw message