diff dbutil.c @ 1214:61d3f56808a4

Merge pull request #18 from annulen/dbclient_syslog Support syslog logging in dbclient.
author Matt Johnston <matt@ucc.asn.au>
date Tue, 15 Dec 2015 21:55:51 +0800
parents 6ecc133fb2ee
children 2bb4c662d1c2
line wrap: on
line diff
--- a/dbutil.c	Tue Dec 15 21:40:32 2015 +0800
+++ b/dbutil.c	Tue Dec 15 21:55:51 2015 +0800
@@ -84,9 +84,9 @@
 #endif
 
 #ifndef DISABLE_SYSLOG
-void startsyslog() {
+void startsyslog(const char *ident) {
 
-	openlog(PROGNAME, LOG_PID, LOG_AUTHPRIV);
+	openlog(ident, LOG_PID, LOG_AUTHPRIV);
 
 }
 #endif /* DISABLE_SYSLOG */