r4899 - trunk/varnish-cache/lib/libvarnishapi

phk at varnish-cache.org phk at varnish-cache.org
Sat Jun 5 14:49:00 CEST 2010


Author: phk
Date: 2010-06-05 14:48:59 +0200 (Sat, 05 Jun 2010)
New Revision: 4899

Modified:
   trunk/varnish-cache/lib/libvarnishapi/base64.c
   trunk/varnish-cache/lib/libvarnishapi/vsl_arg.c
   trunk/varnish-cache/lib/libvarnishapi/vsl_log.c
Log:
polish



Modified: trunk/varnish-cache/lib/libvarnishapi/base64.c
===================================================================
--- trunk/varnish-cache/lib/libvarnishapi/base64.c	2010-06-05 12:40:56 UTC (rev 4898)
+++ trunk/varnish-cache/lib/libvarnishapi/base64.c	2010-06-05 12:48:59 UTC (rev 4899)
@@ -26,7 +26,7 @@
 	for (i = 0; i < 256; i++)
 		i64[i] = -1;
 	for (p = b64, i = 0; *p; p++, i++)
-		i64[(int)*p] = i;
+		i64[(int)*p] = (char)i;
 	i64['='] = 0;
 }
 

Modified: trunk/varnish-cache/lib/libvarnishapi/vsl_arg.c
===================================================================
--- trunk/varnish-cache/lib/libvarnishapi/vsl_arg.c	2010-06-05 12:40:56 UTC (rev 4898)
+++ trunk/varnish-cache/lib/libvarnishapi/vsl_arg.c	2010-06-05 12:48:59 UTC (rev 4899)
@@ -52,10 +52,6 @@
 
 #include "vsl.h"
 
-#ifndef MAP_HASSEMAPHORE
-#define MAP_HASSEMAPHORE 0 /* XXX Linux */
-#endif
-
 /*--------------------------------------------------------------------*/
 
 static int

Modified: trunk/varnish-cache/lib/libvarnishapi/vsl_log.c
===================================================================
--- trunk/varnish-cache/lib/libvarnishapi/vsl_log.c	2010-06-05 12:40:56 UTC (rev 4898)
+++ trunk/varnish-cache/lib/libvarnishapi/vsl_log.c	2010-06-05 12:48:59 UTC (rev 4899)
@@ -49,10 +49,6 @@
 
 #include "vsl.h"
 
-#ifndef MAP_HASSEMAPHORE
-#define MAP_HASSEMAPHORE 0 /* XXX Linux */
-#endif
-
 static int vsl_nextlog(struct VSL_data *vd, unsigned char **pp);
 
 /*--------------------------------------------------------------------*/




More information about the varnish-commit mailing list