r2081 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Mon Oct 8 09:49:26 CEST 2007
Author: phk
Date: 2007-10-08 09:49:26 +0200 (Mon, 08 Oct 2007)
New Revision: 2081
Modified:
trunk/varnish-cache/bin/varnishd/cache_acceptor.c
Log:
comments/style
Modified: trunk/varnish-cache/bin/varnishd/cache_acceptor.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_acceptor.c 2007-10-08 07:19:52 UTC (rev 2080)
+++ trunk/varnish-cache/bin/varnishd/cache_acceptor.c 2007-10-08 07:49:26 UTC (rev 2081)
@@ -226,9 +226,9 @@
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 @@
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));
}
More information about the varnish-commit
mailing list