diff options
author | Eric Haszlakiewicz <erh+git@nimenees.com> | 2012-03-31 11:12:20 -0700 |
---|---|---|
committer | Eric Haszlakiewicz <erh+git@nimenees.com> | 2012-03-31 11:12:20 -0700 |
commit | 7e57d63aebf68889d3fe5ff94ab33e49f8de5ea3 (patch) | |
tree | dfbde409acd7c180f93c5908605be91214c4848d /json_object.c | |
parent | d3c37b82a6de97c40a2403f2df0fd66f3d9fb616 (diff) | |
parent | 37e74674769d2ae224ad52b1a866eb38c00e2821 (diff) | |
download | json-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.c | 4 |
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) { |