summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjose <jose@openbsd.org>2003-09-30 00:18:40 +0000
committerjose <jose@openbsd.org>2003-09-30 00:18:40 +0000
commit074eb5ef9891c7d659b3100d6c1a1a6eadb9c7b7 (patch)
tree37bd0e88510f11cc88eae8fed589d60a91b27b6e
parentRevert BN_cmp() change. Its arguments are const. Spotted by miod@. (diff)
downloadwireguard-openbsd-074eb5ef9891c7d659b3100d6c1a1a6eadb9c7b7.tar.xz
wireguard-openbsd-074eb5ef9891c7d659b3100d6c1a1a6eadb9c7b7.zip
set the log message ident with openlog(), ok henning@
-rw-r--r--usr.sbin/sensorsd/sensorsd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/sensorsd/sensorsd.c b/usr.sbin/sensorsd/sensorsd.c
index a1f1d18cc16..b9149bd6798 100644
--- a/usr.sbin/sensorsd/sensorsd.c
+++ b/usr.sbin/sensorsd/sensorsd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sensorsd.c,v 1.2 2003/09/29 16:05:34 henning Exp $ */
+/* $OpenBSD: sensorsd.c,v 1.3 2003/09/30 00:18:40 jose Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -99,6 +99,8 @@ main(int argc, char *argv[])
if (i == 0)
errx(1, "no sensors found");
+ openlog("sensorsd", LOG_PID | LOG_NDELAY, LOG_DAEMON);
+
if (configfile == NULL)
if (asprintf(&configfile, "/etc/sensorsd.conf") == -1)
err(1, "out of memory");