Update json_util

filename should be passed as const char* to functions
json_object_to_file and json_object_to_file
This commit is contained in:
Pascal Bach
2013-08-13 18:24:23 +02:00
committed by Pascal Bach
parent b3bce4d594
commit 20e4708c8a
2 changed files with 4 additions and 4 deletions

View File

@@ -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);