Commit 424ab43a authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Whitespace cleanup.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2107 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 4a290e46
......@@ -57,4 +57,3 @@ lbv_assert(const char *func, const char *file, int line, const char *cond, int e
" errno = %d (%s)\n", func, file, line, cond, err, strerror(err));
abort();
}
......@@ -298,7 +298,7 @@ main(int argc, char **argv)
#else
struct foo {
unsigned idx;
unsigned idx;
unsigned key;
};
......
......@@ -99,4 +99,3 @@ crc32_l(const void *p1, unsigned l)
crc = crc32(~0U, p1, l);
return (crc ^ ~0U);
}
......@@ -127,14 +127,14 @@ VSS_resolve(const char *addr, const char *port, struct vss_addr ***vap)
struct vss_addr **va;
int i, ret;
memset(&hints, 0, sizeof hints);
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = AI_PASSIVE;
ret = getaddrinfo(addr, port, &hints, &res0);
if (ret != 0) {
fprintf(stderr, "getaddrinfo(): %s\n", gai_strerror(ret));
return (0);
}
memset(&hints, 0, sizeof hints);
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = AI_PASSIVE;
ret = getaddrinfo(addr, port, &hints, &res0);
if (ret != 0) {
fprintf(stderr, "getaddrinfo(): %s\n", gai_strerror(ret));
return (0);
}
for (res = res0, i = 0; res != NULL; res = res->ai_next)
++i;
va = calloc(i, sizeof *va);
......
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