X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2F_infotojson%2Finfotojson.h;fp=tools%2F_infotojson%2Finfotojson.h;h=632debb32cdaac5872423f280f5040424420cd35;hp=c3c9658c53fd2831e687a600e694d750aea20af2;hb=b772f4d9252df33303c142e5750c24ca211ccfc2;hpb=e927b4bd14d50c6f3bb3ba5e658a80f9ee4ee27a diff --git a/tools/_infotojson/infotojson.h b/tools/_infotojson/infotojson.h index c3c9658c..632debb3 100644 --- a/tools/_infotojson/infotojson.h +++ b/tools/_infotojson/infotojson.h @@ -25,13 +25,13 @@ }; /* Function for storing json structure to file given struct json*/ -int storejsontofile(struct json *jsonobj, char *jsonfile); +static int storejsontofile(const struct json *jsonobj, const char *jsonfile); /*Function to store in database*/ -int storejsontodb(struct json *jsonobj, char *db); +static int storejsontodb(const struct json *jsonobj, const char *db); /*create json structure*/ -struct json * createjson(char **infofile, char *author); +static struct json *createjson(char **infofile, char *author); /*Extract info from file*/ -char ** extractinfo(char **file); +static char **extractinfo(char **file);