diff options
author | Pascal Bach <pasci.bach@gmail.com> | 2013-08-13 18:24:23 +0200 |
---|---|---|
committer | Pascal Bach <pascal.bach@siemens.com> | 2013-08-13 18:27:02 +0200 |
commit | 20e4708c8a28dabfc6b55e926b0c47f9b454550d (patch) | |
tree | 90ad37eea77f704048bf000225961d3dd47e9cbc /json_util.h | |
parent | b3bce4d5943774b59d7fa653da89f48db70d013e (diff) | |
download | json-c-20e4708c8a28dabfc6b55e926b0c47f9b454550d.tar.gz |
Update json_util
filename should be passed as const char* to functions
json_object_to_file and json_object_to_file
Diffstat (limited to 'json_util.h')
-rw-r--r-- | json_util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/json_util.h b/json_util.h index b9a69c8..1005e58 100644 --- a/json_util.h +++ b/json_util.h @@ -22,8 +22,8 @@ extern "C" { /* utility functions */ extern struct json_object* json_object_from_file(const char *filename); -extern int json_object_to_file(char *filename, struct json_object *obj); -extern int json_object_to_file_ext(char *filename, struct json_object *obj, int flags); +extern int json_object_to_file(const char *filename, struct json_object *obj); +extern int json_object_to_file_ext(const char *filename, struct json_object *obj, int flags); extern int json_parse_int64(const char *buf, int64_t *retval); extern int json_parse_double(const char *buf, double *retval); |