Commit 654f28d2 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Various nits.



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3410 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent c25c5d0f
......@@ -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;
......
......@@ -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);
......
......@@ -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 "?";
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment