r1837 - trunk/varnish-cache/bin/varnishd
    des at projects.linpro.no 
    des at projects.linpro.no
       
    Mon Aug 13 19:58:10 CEST 2007
    
    
  
Author: des
Date: 2007-08-13 19:58:09 +0200 (Mon, 13 Aug 2007)
New Revision: 1837
Modified:
   trunk/varnish-cache/bin/varnishd/cache_pool.c
Log:
Readability nit
Modified: trunk/varnish-cache/bin/varnishd/cache_pool.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_pool.c	2007-08-13 16:34:26 UTC (rev 1836)
+++ trunk/varnish-cache/bin/varnishd/cache_pool.c	2007-08-13 17:58:09 UTC (rev 1837)
@@ -135,8 +135,9 @@
 	if (w->niov == MAX_IOVS)
 		WRK_Flush(w);
 	w->iov[w->niov].iov_base = (void*)(uintptr_t)ptr;
-	w->iov[w->niov++].iov_len = len;
+	w->iov[w->niov].iov_len = len;
 	w->liov += len;
+	w->niov++;
 	return (len);
 }
 
    
    
More information about the varnish-commit
mailing list