aboutsummaryrefslogtreecommitdiff
path: root/contrib/blocklist/lib/blacklist.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/blocklist/lib/blacklist.c')
-rw-r--r--contrib/blocklist/lib/blacklist.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/contrib/blocklist/lib/blacklist.c b/contrib/blocklist/lib/blacklist.c
index ba376c3daf0d..12e5f83e09af 100644
--- a/contrib/blocklist/lib/blacklist.c
+++ b/contrib/blocklist/lib/blacklist.c
@@ -1,4 +1,4 @@
-/* $NetBSD: blacklist.c,v 1.5 2015/01/22 16:19:53 christos Exp $ */
+/* $NetBSD: blocklist.c,v 1.4 2025/02/11 17:48:30 christos Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -32,11 +32,13 @@
#include "config.h"
#endif
+#ifdef HAVE_SYS_CDEFS_H
#include <sys/cdefs.h>
-__RCSID("$NetBSD: blacklist.c,v 1.5 2015/01/22 16:19:53 christos Exp $");
+#endif
+__RCSID("$NetBSD: blocklist.c,v 1.4 2025/02/11 17:48:30 christos Exp $");
#include <stdio.h>
-#include <bl.h>
+#include <old_bl.h>
#include <stdarg.h>
#include <errno.h>
@@ -98,7 +100,14 @@ blacklist_r(struct blacklist *bl, int action, int rfd, const char *msg)
struct blacklist *
blacklist_open(void) {
- return bl_create(false, NULL, vsyslog);
+ return bl_create(false, NULL, vsyslog_r);
+}
+
+struct blacklist *
+blacklist_open2(
+ void (*logger)(int, struct syslog_data *, const char *, va_list))
+{
+ return bl_create(false, NULL, logger);
}
void