diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-04-14 01:50:19 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-04-14 01:50:19 +0200 |
commit | f9f84ccfa0cd338e2de22878f277352436570b83 (patch) | |
tree | 5bc5e33c7352433028008e3c6cda83003371946b /src/log.c | |
parent | 4b4e384e215fa0479325629a9c26b9325a1dae91 (diff) | |
download | connman-f9f84ccfa0cd338e2de22878f277352436570b83.tar.gz connman-f9f84ccfa0cd338e2de22878f277352436570b83.tar.bz2 connman-f9f84ccfa0cd338e2de22878f277352436570b83.zip |
Use GLib option parsing
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -28,7 +28,7 @@ #include "connman.h" -static volatile int debug_enabled = 0; +static volatile gboolean debug_enabled = FALSE; void connman_info(const char *format, ...) { @@ -56,7 +56,7 @@ void connman_debug(const char *format, ...) { va_list ap; - if (!debug_enabled) + if (debug_enabled == FALSE) return; va_start(ap, format); @@ -66,11 +66,11 @@ void connman_debug(const char *format, ...) va_end(ap); } -int __connman_log_init(int detach, int debug) +int __connman_log_init(gboolean detach, gboolean debug) { int option = LOG_NDELAY | LOG_PID; - if (!detach) + if (detach == FALSE) option |= LOG_PERROR; openlog("connmand", option, LOG_DAEMON); |