]> git.ozlabs.org Git - ccan/blobdiff - tools/_infotojson/infotojson.c
grab_fd and grab_file: add a size arg, use everywhere.
[ccan] / tools / _infotojson / infotojson.c
index f1493cba337cd5222c77c7fb882217e31e709e41..4f21602c29eb8ca4c267c6a6c720772f524a8227 100644 (file)
@@ -129,7 +129,7 @@ int main(int argc, char *argv[])
                errx(1, "usage: infotojson dir_of_module info_filename target_json_file author [sqlitedb]\n"
                                 "Convert _info.c file to json file and optionally store to database");
                
-       file = grab_file(NULL, argv[2]);
+       file = grab_file(NULL, argv[2], NULL);
        if (!file)
                err(1, "Reading file %s", argv[2]);