-/* $Id: evt.c,v 1.2.4.1 2005/09/26 17:49:38 manubsd Exp $ */
+/* $NetBSD: evt.c,v 1.5 2006/09/09 16:22:09 manu Exp $ */
+
+/* Id: evt.c,v 1.5 2006/06/22 20:11:35 manubsd Exp */
/*
* Copyright (C) 2004 Emmanuel Dreyfus
#include "vmbuf.h"
#include "plog.h"
#include "misc.h"
+#include "admin.h"
#include "gcmalloc.h"
#include "evt.h"
-
+#ifdef ENABLE_ADMINPORT
struct evtlist evtlist = TAILQ_HEAD_INITIALIZER(evtlist);
int evtlist_len = 0;
struct evt *evt;
size_t len;
+ /* If admin socket is disabled, silently discard anything */
+ if (adminsock_path == NULL)
+ return;
+
/* If we are above the limit, don't record anything */
if (evtlist_len > EVTLIST_MAX) {
plog(LLV_DEBUG, LOCATION, NULL,
return buf;
}
+
+#endif /* ENABLE_ADMINPORT */