Rename syslog parameter
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 26 Feb 2008 06:41:16 +0000 (07:41 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 26 Feb 2008 06:41:16 +0000 (07:41 +0100)
src/connman.h
src/log.c

index da1693b..76bffe5 100644 (file)
@@ -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>
index 867928c..83466d2 100644 (file)
--- 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);