aboutsummaryrefslogtreecommitdiff
path: root/contrib/blocklist/include/bl.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/blocklist/include/bl.h')
-rw-r--r--contrib/blocklist/include/bl.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/contrib/blocklist/include/bl.h b/contrib/blocklist/include/bl.h
index 8f366de912fe..c7ed517d7a6d 100644
--- a/contrib/blocklist/include/bl.h
+++ b/contrib/blocklist/include/bl.h
@@ -1,4 +1,4 @@
-/* $NetBSD: bl.h,v 1.13 2016/03/11 17:16:40 christos Exp $ */
+/* $NetBSD: bl.h,v 1.2 2024/08/02 17:11:55 christos Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
#include <stdarg.h>
#include <sys/param.h>
#include <sys/socket.h>
-#include "blacklist.h"
+#include "blocklist.h"
typedef enum {
BL_INVALID,
@@ -58,14 +58,15 @@ typedef struct {
#define bi_cred bi_u._bi_cred
#ifndef _PATH_BLSOCK
-#define _PATH_BLSOCK "/var/run/blacklistd.sock"
+#define _PATH_BLSOCK "/var/run/blocklistd.sock"
#endif
__BEGIN_DECLS
-typedef struct blacklist *bl_t;
+typedef struct blocklist *bl_t;
-bl_t bl_create(bool, const char *, void (*)(int, const char *, va_list));
+bl_t bl_create(bool, const char *,
+ void (*)(int, struct syslog_data *, const char *, va_list));
void bl_destroy(bl_t);
int bl_send(bl_t, bl_type_t, int, const struct sockaddr *, socklen_t,
const char *);