From 2e848668194eeb019dacf296dce2abddfa2f3b1a Mon Sep 17 00:00:00 2001 From: des Date: Tue, 16 Oct 2007 14:15:54 +0000 Subject: [PATCH] Whitespace cleanup. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2107 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/lib/libvarnish/assert.c | 1 - varnish-cache/lib/libvarnish/binary_heap.c | 2 +- varnish-cache/lib/libvarnish/crc32.c | 1 - varnish-cache/lib/libvarnish/vss.c | 16 ++++++++-------- 4 files changed, 9 insertions(+), 11 deletions(-) diff --git a/varnish-cache/lib/libvarnish/assert.c b/varnish-cache/lib/libvarnish/assert.c index cd620609..0dbd03ef 100644 --- a/varnish-cache/lib/libvarnish/assert.c +++ b/varnish-cache/lib/libvarnish/assert.c @@ -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(); } - diff --git a/varnish-cache/lib/libvarnish/binary_heap.c b/varnish-cache/lib/libvarnish/binary_heap.c index dd935631..0cf5dbb0 100644 --- a/varnish-cache/lib/libvarnish/binary_heap.c +++ b/varnish-cache/lib/libvarnish/binary_heap.c @@ -298,7 +298,7 @@ main(int argc, char **argv) #else struct foo { - unsigned idx; + unsigned idx; unsigned key; }; diff --git a/varnish-cache/lib/libvarnish/crc32.c b/varnish-cache/lib/libvarnish/crc32.c index 8ea42553..38c2265b 100644 --- a/varnish-cache/lib/libvarnish/crc32.c +++ b/varnish-cache/lib/libvarnish/crc32.c @@ -99,4 +99,3 @@ crc32_l(const void *p1, unsigned l) crc = crc32(~0U, p1, l); return (crc ^ ~0U); } - diff --git a/varnish-cache/lib/libvarnish/vss.c b/varnish-cache/lib/libvarnish/vss.c index 8c65525c..d842a84b 100644 --- a/varnish-cache/lib/libvarnish/vss.c +++ b/varnish-cache/lib/libvarnish/vss.c @@ -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); -- 2.39.5