about summary refs log tree commit homepage
path: root/cmogstored.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-01-31 06:46:39 +0000
committerEric Wong <normalperson@yhbt.net>2013-01-31 06:46:39 +0000
commit459d163514766653d28d8964a7e2e25d27f7c873 (patch)
tree052b9ef1a16ddc24a0b2098391fe48546fd8d87e /cmogstored.c
parentdffe6b3dc226cafb0a6107443f9d7e23095dd789 (diff)
downloadcmogstored-459d163514766653d28d8964a7e2e25d27f7c873.tar.gz
This project uses C99 features (and some GNU extensions),
so bool is usable.
Diffstat (limited to 'cmogstored.c')
-rw-r--r--cmogstored.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmogstored.c b/cmogstored.c
index 5d8b61c..c96ee0b 100644
--- a/cmogstored.c
+++ b/cmogstored.c
@@ -105,7 +105,7 @@ static error_t parse_opt(int key, char *arg, struct argp_state *state)
         int rv = 0;
 
         switch (key) {
-        case 'd': cfg->daemonize = 1; break;
+        case 'd': cfg->daemonize = true; break;
         case 's': /* no-op, we don't load the default config file */; break;
         case CFG_KEY(docroot): cfg->docroot = xstrdup(arg); break;
         case CFG_KEY(pidfile): cfg->pidfile = xstrdup(arg); break;