From fdf30151b8b66221fec49d1f93c94acfbe0db0a3 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 20 Nov 2008 10:19:56 +0000 Subject: [PATCH] Various nits. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3410 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/lib/libvarnish/vss.c | 2 +- varnish-cache/lib/libvcl/vcc_parse.c | 2 +- varnish-cache/lib/libvcl/vcc_xref.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/varnish-cache/lib/libvarnish/vss.c b/varnish-cache/lib/libvarnish/vss.c index 511bed1c..ac46d70c 100644 --- a/varnish-cache/lib/libvarnish/vss.c +++ b/varnish-cache/lib/libvarnish/vss.c @@ -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; diff --git a/varnish-cache/lib/libvcl/vcc_parse.c b/varnish-cache/lib/libvcl/vcc_parse.c index d1003412..d97bc9cc 100644 --- a/varnish-cache/lib/libvcl/vcc_parse.c +++ b/varnish-cache/lib/libvcl/vcc_parse.c @@ -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); diff --git a/varnish-cache/lib/libvcl/vcc_xref.c b/varnish-cache/lib/libvcl/vcc_xref.c index 6aa60267..5e3d1046 100644 --- a/varnish-cache/lib/libvcl/vcc_xref.c +++ b/varnish-cache/lib/libvcl/vcc_xref.c @@ -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 "?"; } } -- 2.39.5