Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/blocklist/bin fix logging function which should...
details: https://anonhg.NetBSD.org/src/rev/738e033bcabb
branches: trunk
changeset: 371810:738e033bcabb
user: christos <christos%NetBSD.org@localhost>
date: Wed Oct 12 18:36:02 2022 +0000
description:
fix logging function which should have used function pointer (jlduran at github)
diffstat:
external/bsd/blocklist/bin/blocklistd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 047527a53e06 -r 738e033bcabb external/bsd/blocklist/bin/blocklistd.c
--- a/external/bsd/blocklist/bin/blocklistd.c Wed Oct 12 18:34:43 2022 +0000
+++ b/external/bsd/blocklist/bin/blocklistd.c Wed Oct 12 18:36:02 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: blocklistd.c,v 1.2 2022/06/11 19:15:58 christos Exp $ */
+/* $NetBSD: blocklistd.c,v 1.3 2022/10/12 18:36:02 christos Exp $ */
/*-
* Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
#include "config.h"
#endif
#include <sys/cdefs.h>
-__RCSID("$NetBSD: blocklistd.c,v 1.2 2022/06/11 19:15:58 christos Exp $");
+__RCSID("$NetBSD: blocklistd.c,v 1.3 2022/10/12 18:36:02 christos Exp $");
#include <sys/types.h>
#include <sys/socket.h>
@@ -322,7 +322,7 @@
if (dbi.id[0]) {
run_change("rem", &c, dbi.id, 0);
sockaddr_snprintf(buf, sizeof(buf), "%a", ss);
- syslog(LOG_INFO, "released %s/%d:%d after %d seconds",
+ (*lfun)(LOG_INFO, "released %s/%d:%d after %d seconds",
buf, c.c_lmask, c.c_port, c.c_duration);
}
state_del(state, &c);
Home |
Main Index |
Thread Index |
Old Index