]> err.no Git - varnish/commitdiff
Fix cosmetic warnings
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 10 Jul 2006 09:48:26 +0000 (09:48 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 10 Jul 2006 09:48:26 +0000 (09:48 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@397 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvarnish/time.c
varnish-cache/lib/libvcl/vcl_compile.c

index 955192271b5f3e452873ef8cd6c759f3c6866381..aaa5b4e506cb7a773378b7917ceb0df5a63ae8a5 100644 (file)
@@ -23,6 +23,8 @@
 #include <string.h>
 #include <time.h>
 
+#include "libvarnish.h"
+
 void
 TIM_format(time_t t, char *p)
 {
index c0b222430b7b1859baf5ff5b90f90597a7dd1250..ad38491581885bc7a38f220e577b729275ac677f 100644 (file)
@@ -647,8 +647,9 @@ IpVal(struct tokenlist *tl)
 }
 
 /*--------------------------------------------------------------------*/
+
 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 @@ VCC_CompileFile(struct sbuf *sb, const char *fn)
 
 /*--------------------------------------------------------------------*/
 
-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)