]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/json.c
zebra, lib: fix the ZEBRA_INTERFACE_VRF_UPDATE zapi message
[mirror_frr.git] / lib / json.c
index 40b6aadaa3ca416bc4ad81f8562535fecf4134bd..4ea20ba178ad5e57b7a44fe0a391c489d086440a 100644 (file)
  * is the *last* keyword on the line no matter
  * what.
  */
-int use_json(const int argc, struct cmd_token *argv[])
+bool use_json(const int argc, struct cmd_token *argv[])
 {
        if (argc == 0)
-               return 0;
+               return false;
 
        if (argv[argc - 1]->arg && strmatch(argv[argc - 1]->text, "json"))
-               return 1;
+               return true;
 
-       return 0;
+       return false;
 }
 
 void json_object_string_add(struct json_object *obj, const char *key,