httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/modules/filters mod_deflate.c
Date Fri, 14 Jun 2002 17:16:59 GMT
wrowe       2002/06/14 10:16:59

  Modified:    modules/filters mod_deflate.c
  Log:
    Clean up a signedness emit
  
  Revision  Changes    Path
  1.20      +5 -4      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.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- mod_deflate.c	14 Jun 2002 07:58:34 -0000	1.19
  +++ mod_deflate.c	14 Jun 2002 17:16:59 -0000	1.20
  @@ -128,7 +128,7 @@
   {
       int windowSize;
       int memlevel;
  -    int bufferSize;
  +    apr_size_t bufferSize;
       char *noteName;
   } deflate_filter_config;
   
  @@ -191,12 +191,13 @@
   {
       deflate_filter_config *c = ap_get_module_config(cmd->server->module_config,
                                                       &deflate_module);
  +    int n = atoi(arg);
   
  -    c->bufferSize = atoi(arg);
  -
  -    if (c->bufferSize <= 0) {
  +    if (n <= 0) {
           return "DeflateBufferSize should be positive";
       }
  +
  +    c->bufferSize = (apr_size_t)n;
   
       return NULL;
   }
  
  
  

Mime
View raw message