diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2002-06-14 17:16:59 +0000 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2002-06-14 17:16:59 +0000 |
commit | 7a48798fdaebb530b7929ff8ed0aab8f0b174b47 (patch) | |
tree | 3dbbc661b0f9b9a904f40ed82bb7106d1e19870c /modules | |
parent | 8a5c5d303ed4126a75919420267593e3f76c91ba (diff) | |
download | httpd-7a48798fdaebb530b7929ff8ed0aab8f0b174b47.tar.gz |
Clean up a signedness emit
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95676 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r-- | modules/filters/mod_deflate.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/filters/mod_deflate.c b/modules/filters/mod_deflate.c index 5a0b525bdd..82b2d9ff23 100644 --- a/modules/filters/mod_deflate.c +++ b/modules/filters/mod_deflate.c @@ -128,7 +128,7 @@ typedef struct deflate_filter_config_t { int windowSize; int memlevel; - int bufferSize; + apr_size_t bufferSize; char *noteName; } deflate_filter_config; @@ -191,13 +191,14 @@ static const char *deflate_set_buffer_size(cmd_parms *cmd, void *dummy, { 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; } static const char *deflate_set_note(cmd_parms *cmd, void *dummy, |