summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/connman.h2
-rw-r--r--src/log.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/connman.h b/src/connman.h
index da1693b1..76bffe55 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -49,7 +49,7 @@ int __connman_agent_unregister(const char *sender, const char *path);
#include <connman/log.h>
-int __connman_log_init(int syslog, int debug);
+int __connman_log_init(int detach, int debug);
void __connman_log_cleanup(void);
#include <connman/plugin.h>
diff --git a/src/log.c b/src/log.c
index 867928ce..83466d22 100644
--- a/src/log.c
+++ b/src/log.c
@@ -66,11 +66,11 @@ void connman_debug(const char *format, ...)
va_end(ap);
}
-int __connman_log_init(int syslog, int debug)
+int __connman_log_init(int detach, int debug)
{
int option = LOG_NDELAY | LOG_PID;
- if (!syslog)
+ if (!detach)
option |= LOG_PERROR;
openlog("connmand", option, LOG_DAEMON);