r716 - trunk/varnish-cache/lib/libvcl

des at projects.linpro.no des at projects.linpro.no
Mon Aug 7 16:55:51 CEST 2006


Author: des
Date: 2006-08-07 16:55:51 +0200 (Mon, 07 Aug 2006)
New Revision: 716

Modified:
   trunk/varnish-cache/lib/libvcl/vcc_compile.c
Log:
Eliminate __unused.

Modified: trunk/varnish-cache/lib/libvcl/vcc_compile.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_compile.c	2006-08-07 14:52:42 UTC (rev 715)
+++ trunk/varnish-cache/lib/libvcl/vcc_compile.c	2006-08-07 14:55:51 UTC (rev 716)
@@ -401,12 +401,14 @@
 /*--------------------------------------------------------------------*/
 
 static struct var *
-HeaderVar(struct tokenlist *tl __unused, struct token *t, struct var *vh)
+HeaderVar(struct tokenlist *tl, struct token *t, struct var *vh)
 {
 	char *p;
 	struct var *v;
 	int i;
 
+	(void)tl;
+
 	v = calloc(sizeof *v, 1);
 	assert(v != NULL);
 	i = t->e - t->b;
@@ -1474,19 +1476,23 @@
 /*--------------------------------------------------------------------*/
 
 static int
-VCC_T_render(FILE *f, const struct printf_info *info __unused, const void *const *args)
+VCC_T_render(FILE *f, const struct printf_info *info, const void *const *args)
 {
 	const struct token *t;
 
+	(void)info;
+
 	t = *((const struct token * const*) (args[0]));
 	return (fprintf(f, "%*.*s",
 	    t->e - t->b, t->e - t->b, t->b));
 }
      
 static int
-VCC_T_arginfo(const struct printf_info *info __unused, size_t n, int *argtypes)
+VCC_T_arginfo(const struct printf_info *info, size_t n, int *argtypes)
 {
 
+	(void)info;
+
 	if (n > 0)
 		argtypes[0] = PA_POINTER;
 	return 1;




More information about the varnish-commit mailing list