You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "Victor J. Orlikowski" <vj...@raleigh.ibm.com> on 2000/06/23 17:16:52 UTC
[PATCH] Compiler cleanup, now correct...
Internal debate has resolved this, should be an ap_ssize_t.
Fixed patch below.
Index: src/ap/ap_cache.c
===================================================================
RCS file: /cvs/apache/apache-2.0/src/ap/ap_cache.c,v
retrieving revision 1.3
diff -u -r1.3 ap_cache.c
--- ap_cache.c 2000/06/12 23:55:11 1.3
+++ ap_cache.c 2000/06/23 14:34:28
@@ -132,11 +132,11 @@
BUFF *place;
char buffer[HUGE_STRING_LEN];
ap_status_t ret = APR_SUCCESS;
- int nbytes, i;
+ ap_ssize_t nbytes, i, o;
if((ret = ap_cache_el_data(el, &place)) != APR_SUCCESS) return ret;
while(ap_bread(data, buffer, HUGE_STRING_LEN, &nbytes) == APR_SUCCESS
&& nbytes) {
- int o = 0;
+ o = 0;
while(nbytes)
{
ap_bwrite(place, buffer + o, nbytes, &i);