summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-02-26 07:41:16 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-02-26 07:41:16 +0100
commit01dbb962cbb1ea6871ad1ee0c73461cd68511745 (patch)
tree9e1e98a3a48269d3ab35cea44797ec9bb3c8f0bc /src
parent2363421b798c295d226037defb96583ecf153b34 (diff)
downloadconnman-01dbb962cbb1ea6871ad1ee0c73461cd68511745.tar.gz
connman-01dbb962cbb1ea6871ad1ee0c73461cd68511745.tar.bz2
connman-01dbb962cbb1ea6871ad1ee0c73461cd68511745.zip
Rename syslog parameter
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);