X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fmanifest.h;h=d2de6437ed81d6ebb5197a0a2a56bbee528759d8;hp=945574ded878bfb7d782208ee08b8b64e7c93c0e;hb=d218dcd458cbec7a1b958af39b70cd068da7b040;hpb=dc8042b42500f79f613b1197df6cdf739615a89f diff --git a/tools/manifest.h b/tools/manifest.h index 945574de..d2de6437 100644 --- a/tools/manifest.h +++ b/tools/manifest.h @@ -64,7 +64,6 @@ struct ccan_file { size_t contents_size; /* Use get_ccan_file_lines / get_ccan_line_info to fill these. */ - unsigned int num_lines; char **lines; struct line_info *line_info; @@ -83,8 +82,9 @@ struct ccan_file { char *simplified; }; -/* A new ccan_file, with the given name (tal_steal onto returned value). */ -struct ccan_file *new_ccan_file(const void *ctx, const char *dir, char *name); +/* A new ccan_file, with the given dir and name (either can be take()). */ +struct ccan_file *new_ccan_file(const void *ctx, + const char *dir, const char *name); /* Use this rather than accessing f->contents directly: loads on demand. */ const char *get_ccan_file_contents(struct ccan_file *f);