summaryrefslogtreecommitdiff
path: root/json_object.h
diff options
context:
space:
mode:
authorEric Haszlakiewicz <erh+git@nimenees.com>2017-12-04 18:17:52 -0500
committerEric Haszlakiewicz <erh+git@nimenees.com>2017-12-04 18:17:52 -0500
commitaedd36ac8b1254229c07e280164c477549c2f89f (patch)
tree1043ec30c1888f6cf06ebcfe8cbd97bd7fecd7c8 /json_object.h
parent95015d474e73dd0815ce7169066b4691b0295db9 (diff)
downloadjson-c-aedd36ac8b1254229c07e280164c477549c2f89f.tar.gz
Make sure to include the "*" on function pointer arguments to avoid a warnings from VS2015. See also PR#384.
Diffstat (limited to 'json_object.h')
-rw-r--r--json_object.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/json_object.h b/json_object.h
index 215c291..83ce066 100644
--- a/json_object.h
+++ b/json_object.h
@@ -324,7 +324,7 @@ JSON_EXPORT void json_object_set_userdata(json_object *jso, void *userdata,
* @param user_delete an optional function from freeing userdata
*/
JSON_EXPORT void json_object_set_serializer(json_object *jso,
- json_object_to_json_string_fn to_string_func,
+ json_object_to_json_string_fn *to_string_func,
void *userdata,
json_object_delete_fn *user_delete);