]> err.no Git - varnish/commitdiff
We don't need srandomdev.h here anymore.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 5 Jun 2008 09:18:09 +0000 (09:18 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 5 Jun 2008 09:18:09 +0000 (09:18 +0000)
Don't hand-roll an assert.

git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2649 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_acceptor.c

index 28e18bcda31cfd54467eb65527c7905fbebce6a5..5dfd39b3736bd1f0d37a1fd685469e00f59d2d5a 100644 (file)
 #include <sys/types.h>
 #include <sys/socket.h>
 
-#ifndef HAVE_SRANDOMDEV
-#include "compat/srandomdev.h"
-#endif
-
 #include "cli.h"
 #include "cli_priv.h"
 #include "shmlog.h"
@@ -294,10 +290,9 @@ ccf_start(struct cli *cli, const char * const *av, void *priv)
        /* XXX: Add selector mechanism at some point */
        vca_act = vca_acceptors[0];
 
-       if (vca_act->name == NULL) {
-               fprintf(stderr, "No acceptor in program\n");
-               exit (2);
-       }
+       AN(vca_act);
+       AN(vca_act->name);
+
        if (vca_act->pass == NULL)
                AZ(pipe(vca_pipes));
        vca_act->init();