r3230 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Fri Sep 26 15:20:18 CEST 2008
Author: phk
Date: 2008-09-26 15:20:18 +0200 (Fri, 26 Sep 2008)
New Revision: 3230
Modified:
trunk/varnish-cache/bin/varnishd/cache_panic.c
trunk/varnish-cache/bin/varnishd/storage_synth.c
Log:
A couple of FlexeLint nits
Modified: trunk/varnish-cache/bin/varnishd/cache_panic.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_panic.c 2008-09-26 13:07:51 UTC (rev 3229)
+++ trunk/varnish-cache/bin/varnishd/cache_panic.c 2008-09-26 13:20:18 UTC (rev 3230)
@@ -223,13 +223,13 @@
#undef VCL_RET_MAC
#undef VCL_RET_MAC_E
/*lint -restore */
- default: stp = NULL;
+ default: hand = NULL;
}
if (stp != NULL)
vsb_printf(vsp, " step = %s,\n", stp);
else
vsb_printf(vsp, " step = 0x%x,\n", sp->step);
- if (stp != NULL)
+ if (hand != NULL)
vsb_printf(vsp, " handling = %s,\n", hand);
else
vsb_printf(vsp, " handling = 0x%x,\n", sp->handling);
@@ -320,7 +320,7 @@
}
#endif
if (params->diag_bitmap & 0x1000)
- (void)exit(4);
+ exit(4);
else
abort();
}
Modified: trunk/varnish-cache/bin/varnishd/storage_synth.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/storage_synth.c 2008-09-26 13:07:51 UTC (rev 3229)
+++ trunk/varnish-cache/bin/varnishd/storage_synth.c 2008-09-26 13:20:18 UTC (rev 3230)
@@ -89,8 +89,6 @@
sto = calloc(sizeof *sto, 1);
XXXAN(sto);
- if (sto == NULL)
- return (NULL);
vsb = vsb_newauto();
XXXAN(vsb);
sto->priv = vsb;
More information about the varnish-commit
mailing list