]> err.no Git - varnish/commitdiff
A couple of FlexeLint nits
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 26 Sep 2008 13:20:18 +0000 (13:20 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 26 Sep 2008 13:20:18 +0000 (13:20 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3230 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_panic.c
varnish-cache/bin/varnishd/storage_synth.c

index e6ae71b8d81eabe7483130bda91b29e26a5337f1..168627e98aa6434a518bcefb621d2463f3755578 100644 (file)
@@ -223,13 +223,13 @@ pan_sess(const struct sess *sp)
 #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 @@ pan_ic(const char *func, const char *file, int line, const char *cond, int err,
        }
 #endif
        if (params->diag_bitmap & 0x1000)
-               (void)exit(4);
+               exit(4);
        else
                abort();
 }
index aee73786ca41b9ab5c7f6ae656a9871049946a0c..b3c66ac03e0d63f45cfd8f8039fcc76d9ff84e07 100644 (file)
@@ -89,8 +89,6 @@ SMS_Makesynth(struct object *obj)
 
        sto = calloc(sizeof *sto, 1);
        XXXAN(sto);
-       if (sto == NULL)
-               return (NULL);
        vsb = vsb_newauto();
        XXXAN(vsb);
        sto->priv = vsb;