]> err.no Git - varnish/commitdiff
Various nits.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 20 Nov 2008 10:19:56 +0000 (10:19 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 20 Nov 2008 10:19:56 +0000 (10:19 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3410 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/lib/libvarnish/vss.c
varnish-cache/lib/libvcl/vcc_parse.c
varnish-cache/lib/libvcl/vcc_xref.c

index 511bed1cd179a131ee14beecadb596c1ab44a6ec..ac46d70c3b834f7369183dd977d0292abb80a243 100644 (file)
@@ -155,7 +155,7 @@ VSS_resolve(const char *addr, const char *port, struct vss_addr ***vap)
        XXXAN(va);
        *vap = va;
        for (res = res0, i = 0; res != NULL; res = res->ai_next, ++i) {
-               va[i] = calloc(1, sizeof *va[i]);
+               va[i] = calloc(1, sizeof(*va[i]));
                XXXAN(va[i]);
                va[i]->va_family = res->ai_family;
                va[i]->va_socktype = res->ai_socktype;
index d1003412898bd02c70f805950b3e7cb8fda8105b..d97bc9cc526af0486c86a90ed953779c07d6562c 100644 (file)
@@ -127,7 +127,7 @@ SizeUnit(struct tokenlist *tl)
 static double
 RateUnit(struct tokenlist *tl)
 {
-       double sc = 1.0;
+       double sc;
 
        assert(tl->t->tok == ID);
        sc = SizeUnit(tl);
index 6aa60267755fb0d9f4cfb0b3795abef8ee1483dc..5e3d1046b681a296ac1f6a4b92db113ead167fa2 100644 (file)
@@ -28,7 +28,7 @@
  *
  * $Id$
  *
- * This fine contains code for two cross-reference or consistency checks.
+ * This file contains code for two cross-reference or consistency checks.
  *
  * The first check is simply that all functions, acls and backends are
  * both defined and referenced.  Complaints about referenced but undefined
@@ -90,7 +90,7 @@ vcc_typename(struct tokenlist *tl, const struct ref *r)
                vcc_ErrToken(tl, r->name);
                vsb_printf(tl->sb, " has unknown type %d\n",
                    r->type);
-               return "???";
+               return "?";
        }
 }