You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rs...@hyperreal.org on 1998/07/09 11:52:22 UTC
cvs commit: apache-1.3/src/modules/proxy proxy_cache.c
rse 98/07/09 02:52:22
Modified: src/modules/proxy proxy_cache.c
Log:
Add one more level of parenthesis because the (long) cast has to
apply to the complete expression or GCC still complains with:
proxy_cache.c:334: warning: long int format, different type arg (arg 6)
proxy_cache.c:365: warning: long int format, different type arg (arg 6)
Revision Changes Path
1.45 +2 -2 apache-1.3/src/modules/proxy/proxy_cache.c
Index: proxy_cache.c
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/modules/proxy/proxy_cache.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- proxy_cache.c 1998/06/13 15:22:59 1.44
+++ proxy_cache.c 1998/07/09 09:52:20 1.45
@@ -331,7 +331,7 @@
if (cmp_long61(&curbytes, &cachesize) < 0L) {
ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, r->server,
"proxy GC: Cache is %ld%% full (nothing deleted)",
- (long)((curbytes.upper<<20)|(curbytes.lower>>10))*100/conf->space);
+ (long)(((curbytes.upper<<20)|(curbytes.lower>>10))*100/conf->space));
ap_unblock_alarms();
return;
}
@@ -362,7 +362,7 @@
ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, r->server,
"proxy GC: Cache is %ld%% full (%d deleted)",
- (long)((curbytes.upper<<20)|(curbytes.lower>>10))*100/conf->space, i);
+ (long)(((curbytes.upper<<20)|(curbytes.lower>>10))*100/conf->space), i);
ap_unblock_alarms();
}