Commit 8b68f3d8 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

We don't need srandomdev.h here anymore.

Don't hand-roll an assert.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2649 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 82a568c4
...@@ -46,10 +46,6 @@ ...@@ -46,10 +46,6 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#ifndef HAVE_SRANDOMDEV
#include "compat/srandomdev.h"
#endif
#include "cli.h" #include "cli.h"
#include "cli_priv.h" #include "cli_priv.h"
#include "shmlog.h" #include "shmlog.h"
...@@ -294,10 +290,9 @@ ccf_start(struct cli *cli, const char * const *av, void *priv) ...@@ -294,10 +290,9 @@ ccf_start(struct cli *cli, const char * const *av, void *priv)
/* XXX: Add selector mechanism at some point */ /* XXX: Add selector mechanism at some point */
vca_act = vca_acceptors[0]; vca_act = vca_acceptors[0];
if (vca_act->name == NULL) { AN(vca_act);
fprintf(stderr, "No acceptor in program\n"); AN(vca_act->name);
exit (2);
}
if (vca_act->pass == NULL) if (vca_act->pass == NULL)
AZ(pipe(vca_pipes)); AZ(pipe(vca_pipes));
vca_act->init(); vca_act->init();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment