r397 - in trunk/varnish-cache/lib: libvarnish libvcl

phk at projects.linpro.no phk at projects.linpro.no
Mon Jul 10 11:48:26 CEST 2006


Author: phk
Date: 2006-07-10 11:48:26 +0200 (Mon, 10 Jul 2006)
New Revision: 397

Modified:
   trunk/varnish-cache/lib/libvarnish/time.c
   trunk/varnish-cache/lib/libvcl/vcl_compile.c
Log:
Fix cosmetic warnings


Modified: trunk/varnish-cache/lib/libvarnish/time.c
===================================================================
--- trunk/varnish-cache/lib/libvarnish/time.c	2006-07-10 09:47:56 UTC (rev 396)
+++ trunk/varnish-cache/lib/libvarnish/time.c	2006-07-10 09:48:26 UTC (rev 397)
@@ -23,6 +23,8 @@
 #include <string.h>
 #include <time.h>
 
+#include "libvarnish.h"
+
 void
 TIM_format(time_t t, char *p)
 {

Modified: trunk/varnish-cache/lib/libvcl/vcl_compile.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcl_compile.c	2006-07-10 09:47:56 UTC (rev 396)
+++ trunk/varnish-cache/lib/libvcl/vcl_compile.c	2006-07-10 09:48:26 UTC (rev 397)
@@ -647,8 +647,9 @@
 }
 
 /*--------------------------------------------------------------------*/
+
 static struct var *
-HeaderVar(struct tokenlist *tl, struct token *t, struct var *vh)
+HeaderVar(struct tokenlist *tl __unused, struct token *t, struct var *vh)
 {
 	char *p;
 	struct var *v;
@@ -1847,18 +1848,18 @@
 
 /*--------------------------------------------------------------------*/
 
-int
-VCC_T_render(FILE *f, const struct printf_info *info, const void *const *args)
+static int
+VCC_T_render(FILE *f, const struct printf_info *info __unused, const void *const *args)
 {
 	const struct token *t;
 
-	t = *((const struct token **) (args[0]));
+	t = *((const struct token * const*) (args[0]));
 	return (fprintf(f, "%*.*s",
 	    t->e - t->b, t->e - t->b, t->b));
 }
      
-int
-VCC_T_arginfo(const struct printf_info *info, size_t n, int *argtypes)
+static int
+VCC_T_arginfo(const struct printf_info *info __unused, size_t n, int *argtypes)
 {
 
 	if (n > 0)




More information about the varnish-commit mailing list