[3.0] 48f0287 Try to make osx build happier.

Tollef Fog Heen tfheen at varnish-cache.org
Mon Apr 22 13:27:00 CEST 2013


commit 48f0287675cd561bb381b4756b7290a994aaa73b
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Aug 21 09:01:36 2012 +0000

    Try to make osx build happier.
    
    And yes, why ptrdiff_t even exists and why it can be different,
    semantically or otherwise, from ssize_t is beyond me...

diff --git a/lib/libvcl/vcc_backend.c b/lib/libvcl/vcc_backend.c
index 836d4c0..655ee63 100644
--- a/lib/libvcl/vcc_backend.c
+++ b/lib/libvcl/vcc_backend.c
@@ -713,13 +713,13 @@ vcc_ParseDirector(struct vcc *tl)
 
 	vcc_ExpectCid(tl);		/* ID: name */
 	ERRCHK(tl);
-       if (tl->t->e - tl->t->b > 64) {
-	       VSB_printf(tl->sb,
-			  "Name of %.*s too long (max 64, is %zd):\n",
-			  PF(t_first), (tl->t->e - tl->t->b));
-	       vcc_ErrWhere(tl, tl->t);
-	       return;
-       }
+	if (tl->t->e - tl->t->b > 64) {
+		VSB_printf(tl->sb,
+		    "Name of %.*s too long (max 64, is %zu):\n",
+		    PF(t_first), (size_t)(tl->t->e - tl->t->b));
+		vcc_ErrWhere(tl, tl->t);
+		return;
+	}
 	tl->t_dir = tl->t;
 	vcc_NextToken(tl);
 



More information about the varnish-commit mailing list