From: phk Date: Mon, 8 Oct 2007 07:49:26 +0000 (+0000) Subject: comments/style X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3827bbdc24c6f12d82e7e68fa36b0714c68e4b9;p=varnish comments/style git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2081 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_acceptor.c b/varnish-cache/bin/varnishd/cache_acceptor.c index c56f7178..4ef5a3db 100644 --- a/varnish-cache/bin/varnishd/cache_acceptor.c +++ b/varnish-cache/bin/varnishd/cache_acceptor.c @@ -226,9 +226,9 @@ vca_pollsession(struct sess *sp) i = HTC_Rx(sp->htc); /* XXX: fix retval */ - if (i == 0) + if (i == 0) /* more needed */ return (-1); - if (i == 1) + if (i == 1) /* Yes, done */ return (0); vca_close_session(sp, "err/poll"); return (1); @@ -259,7 +259,7 @@ vca_return_session(struct sess *sp) if (sp->fd < 0) SES_Delete(sp); else - assert(sizeof sp == write(vca_pipes[1], &sp, sizeof sp)); + assert(sizeof sp == write(vca_pipes[1], &sp, sizeof sp)); }