Browse Source

* 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
tags/json-c-0.10-20120530
Michael Clark 16 years ago
parent
commit
88ded9ceb8
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      json_util.c
  2. +1
    -1
      json_util.h

+ 1
- 1
json_util.c View File

@@ -52,7 +52,7 @@
#include "json_tokener.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 json_object *obj;


+ 1
- 1
json_util.h View File

@@ -21,7 +21,7 @@ extern "C" {
#define JSON_FILE_BUF_SIZE 4096

/* 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);

#ifdef __cplusplus


Loading…
Cancel
Save