httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@hyperreal.org
Subject cvs commit: apache-1.3/src/modules/proxy proxy_cache.c
Date Thu, 09 Jul 1998 09:52:22 GMT
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();
   }
   
  
  
  

Mime
View raw message