summaryrefslogtreecommitdiffhomepage
path: root/dbutil.c
diff options
context:
space:
mode:
authorKonstantin Tokarev <ktokarev@smartlabs.tv>2015-12-01 21:54:03 +0300
committerKonstantin Tokarev <ktokarev@smartlabs.tv>2015-12-15 16:43:29 +0300
commitc59827334cdd9e2e25ae3b75d73045d1fca3fa69 (patch)
treeb078cc7a8b6c74f435c0598410fa9c2f229397d0 /dbutil.c
parent2d6bbf341d0554fb33179dfe7757b6e22f993fe6 (diff)
Allow setting syslog identifier via startsyslog().
Diffstat (limited to 'dbutil.c')
-rw-r--r--dbutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbutil.c b/dbutil.c
index d87835b..7c7c069 100644
--- a/dbutil.c
+++ b/dbutil.c
@@ -84,9 +84,9 @@ int debug_trace = 0;
#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 */