svn commit: r356865 - stable/12/usr.sbin/bsnmpd/modules/snmp_lm75

Shteryana Shopova syrinx at FreeBSD.org
Sat Jan 18 10:55:39 UTC 2020


Author: syrinx
Date: Sat Jan 18 10:55:38 2020
New Revision: 356865
URL: https://svnweb.freebsd.org/changeset/base/356865

Log:
  MFC r349265: 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
  
  PR:		233431 , 221487
  Event:		Vienna Hackathon 2019

Modified:
  stable/12/usr.sbin/bsnmpd/modules/snmp_lm75/snmp_lm75.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/usr.sbin/bsnmpd/modules/snmp_lm75/snmp_lm75.c
==============================================================================
--- stable/12/usr.sbin/bsnmpd/modules/snmp_lm75/snmp_lm75.c	Sat Jan 18 10:44:32 2020	(r356864)
+++ stable/12/usr.sbin/bsnmpd/modules/snmp_lm75/snmp_lm75.c	Sat Jan 18 10:55:38 2020	(r356865)
@@ -100,7 +100,6 @@ lm75_init(struct lmodule *mod, int argc __unused, char
 	module = mod;
 
 	lm75_sensors = 0;
-	openlog("snmp_lm75", LOG_NDELAY | LOG_PID, LOG_DAEMON);
 
 	return(0);
 }


More information about the svn-src-all mailing list