* Make json_object_from_file take const char *filename

Spotted by Vikram Raj V, vsagar at attinteractive dot com


git-svn-id: http://svn.metaparadigm.com/svn/json-c/trunk@55 327403b1-1117-474d-bef2-5cb71233fd97
This commit is contained in:
Michael Clark
2009-08-27 06:40:59 +00:00
parent f5dd43a9d1
commit 88ded9ceb8
2 changed files with 2 additions and 2 deletions

View File

@@ -52,7 +52,7 @@
#include "json_tokener.h" #include "json_tokener.h"
#include "json_util.h" #include "json_util.h"
struct json_object* json_object_from_file(char *filename) struct json_object* json_object_from_file(const char *filename)
{ {
struct printbuf *pb; struct printbuf *pb;
struct json_object *obj; struct json_object *obj;

View File

@@ -21,7 +21,7 @@ extern "C" {
#define JSON_FILE_BUF_SIZE 4096 #define JSON_FILE_BUF_SIZE 4096
/* utility functions */ /* utility functions */
extern struct json_object* json_object_from_file(char *filename); 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(char *filename, struct json_object *obj);
#ifdef __cplusplus #ifdef __cplusplus