summaryrefslogtreecommitdiff
path: root/json_object.c
diff options
context:
space:
mode:
authorEric Haszlakiewicz <erh+git@nimenees.com>2012-03-31 11:12:20 -0700
committerEric Haszlakiewicz <erh+git@nimenees.com>2012-03-31 11:12:20 -0700
commit7e57d63aebf68889d3fe5ff94ab33e49f8de5ea3 (patch)
treedfbde409acd7c180f93c5908605be91214c4848d /json_object.c
parentd3c37b82a6de97c40a2403f2df0fd66f3d9fb616 (diff)
parent37e74674769d2ae224ad52b1a866eb38c00e2821 (diff)
downloadjson-c-7e57d63aebf68889d3fe5ff94ab33e49f8de5ea3.tar.gz
Merge pull request #16 from kdopen/master
Renaming the boolean type to json_bool in json_object.h
Diffstat (limited to 'json_object.c')
-rw-r--r--json_object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/json_object.c b/json_object.c
index 65c1f6c..7848630 100644
--- a/json_object.c
+++ b/json_object.c
@@ -275,7 +275,7 @@ static int json_object_boolean_to_json_string(struct json_object* jso,
else return sprintbuf(pb, "false");
}
-struct json_object* json_object_new_boolean(boolean b)
+struct json_object* json_object_new_boolean(json_bool b)
{
struct json_object *jso = json_object_new(json_type_boolean);
if(!jso) return NULL;
@@ -284,7 +284,7 @@ struct json_object* json_object_new_boolean(boolean b)
return jso;
}
-boolean json_object_get_boolean(struct json_object *jso)
+json_bool json_object_get_boolean(struct json_object *jso)
{
if(!jso) return FALSE;
switch(jso->o_type) {