From: phk Date: Thu, 5 Jun 2008 09:18:09 +0000 (+0000) Subject: We don't need srandomdev.h here anymore. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35bff53c38da311f07ef80fa1fc20f462efbdee5;p=varnish We don't need srandomdev.h here anymore. Don't hand-roll an assert. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2649 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_acceptor.c b/varnish-cache/bin/varnishd/cache_acceptor.c index 28e18bcd..5dfd39b3 100644 --- a/varnish-cache/bin/varnishd/cache_acceptor.c +++ b/varnish-cache/bin/varnishd/cache_acceptor.c @@ -46,10 +46,6 @@ #include #include -#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();