jsoninfo: noFork should be a boolean
authorHans-Christoph Steiner <hans@eds.org>
Fri, 8 Jun 2012 00:12:20 +0000 (20:12 -0400)
committerHans-Christoph Steiner <hans@eds.org>
Fri, 8 Jun 2012 00:28:59 +0000 (20:28 -0400)
lib/jsoninfo/src/olsrd_jsoninfo.c

index 6968ef8..bba0b90 100644 (file)
@@ -885,7 +885,7 @@ ipc_print_config(struct autobuf *abuf)
 
   abuf_json_int(abuf, "olsrPort", olsr_cnf->olsrport);
   abuf_json_int(abuf, "debugLevel", olsr_cnf->debug_level);
-  abuf_json_int(abuf, "noFork", olsr_cnf->no_fork);
+  abuf_json_boolean(abuf, "noFork", olsr_cnf->no_fork);
   abuf_json_boolean(abuf, "hostEmulation", olsr_cnf->host_emul);
   abuf_json_int(abuf, "ipVersion", olsr_cnf->ip_version);
   abuf_json_boolean(abuf, "allowNoInterfaces", olsr_cnf->allow_no_interfaces);