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 @@
#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();
......
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