diff dbutil.c @ 1211:6ecc133fb2ee

Allow setting syslog identifier via startsyslog().
author Konstantin Tokarev <ktokarev@smartlabs.tv>
date Tue, 01 Dec 2015 21:54:03 +0300
parents 36557295418e
children 2bb4c662d1c2
line wrap: on
line diff
--- a/dbutil.c	Tue Dec 01 21:52:38 2015 +0300
+++ b/dbutil.c	Tue Dec 01 21:54:03 2015 +0300
@@ -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 */