diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-02-26 07:41:16 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-02-26 07:41:16 +0100 |
commit | 01dbb962cbb1ea6871ad1ee0c73461cd68511745 (patch) | |
tree | 9e1e98a3a48269d3ab35cea44797ec9bb3c8f0bc | |
parent | 2363421b798c295d226037defb96583ecf153b34 (diff) | |
download | connman-01dbb962cbb1ea6871ad1ee0c73461cd68511745.tar.gz connman-01dbb962cbb1ea6871ad1ee0c73461cd68511745.tar.bz2 connman-01dbb962cbb1ea6871ad1ee0c73461cd68511745.zip |
Rename syslog parameter
-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); |