diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/connman.h | 2 | ||||
-rw-r--r-- | src/log.c | 4 |
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> @@ -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); |