From 9a8070808e9c3ccf866ec81a25c9cfb9a71ca2d3 Mon Sep 17 00:00:00 2001 From: Shteryana Shopova Date: Fri, 21 Jun 2019 07:45:58 +0000 Subject: [PATCH] No need for each bsnmpd(1) module to open connection to syslog bsnmpd(1) main does that early on init and the connection is available to all loaded modules Event: Vienna Hackathon 2019 PR: 233431 , 221487 MFC after: 2 weeks --- usr.sbin/bsnmpd/modules/snmp_lm75/snmp_lm75.c | 1 - 1 file changed, 1 deletion(-) diff --git a/usr.sbin/bsnmpd/modules/snmp_lm75/snmp_lm75.c b/usr.sbin/bsnmpd/modules/snmp_lm75/snmp_lm75.c index 1822f7801e80..a55050b851d3 100644 --- a/usr.sbin/bsnmpd/modules/snmp_lm75/snmp_lm75.c +++ b/usr.sbin/bsnmpd/modules/snmp_lm75/snmp_lm75.c @@ -100,7 +100,6 @@ lm75_init(struct lmodule *mod, int argc __unused, char *argv[] __unused) module = mod; lm75_sensors = 0; - openlog("snmp_lm75", LOG_NDELAY | LOG_PID, LOG_DAEMON); return(0); }