Return-Path: Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 97534 invoked by uid 500); 14 Jun 2002 17:45:02 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 97523 invoked by uid 500); 14 Jun 2002 17:45:02 -0000 Delivered-To: apmail-httpd-2.0-cvs@apache.org Date: 14 Jun 2002 17:16:59 -0000 Message-ID: <20020614171659.3290.qmail@icarus.apache.org> From: wrowe@apache.org To: httpd-2.0-cvs@apache.org Subject: cvs commit: httpd-2.0/modules/filters mod_deflate.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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; }