Don't hand-roll an assert.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2649
d4fa192b-c00b-0410-8231-
f00ffab90ce4
#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"
/* 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();