]> err.no Git - varnish/commitdiff
comments/style
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 8 Oct 2007 07:49:26 +0000 (07:49 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 8 Oct 2007 07:49:26 +0000 (07:49 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2081 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_acceptor.c

index c56f71786919c899cdfe45297a692f04bc30d887..4ef5a3db2e1c71af4bb17fe95522d17186830425 100644 (file)
@@ -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));
 }