projects
/
ccan
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make depends build the _info files (easier for Dinesh's work)
[ccan]
/
tools
/
ccan_depends.c
diff --git
a/tools/ccan_depends.c
b/tools/ccan_depends.c
index 982d13b32b9f90e3d555efffc44fa16c8ee0d486..a5f6cc287ef0fd7458b26d170bd937b48d57c0b2 100644
(file)
--- a/
tools/ccan_depends.c
+++ b/
tools/ccan_depends.c
@@
-3,6
+3,7
@@
#include <stdlib.h>
#include <stdio.h>
#include "string/string.h"
#include <stdlib.h>
#include <stdio.h>
#include "string/string.h"
+#include "talloc/talloc.h"
int main(int argc, char *argv[])
{
int main(int argc, char *argv[])
{
@@
-13,7
+14,7
@@
int main(int argc, char *argv[])
errx(1, "Usage: ccan_depends <dir>\n"
"Spits out all the ccan dependencies (recursively)");
errx(1, "Usage: ccan_depends <dir>\n"
"Spits out all the ccan dependencies (recursively)");
- deps = get_deps(
NULL
, argv[1]);
+ deps = get_deps(
talloc_autofree_context()
, argv[1]);
for (i = 0; deps[i]; i++)
if (strstarts(deps[i], "ccan/"))
printf("%s\n", deps[i]);
for (i = 0; deps[i]; i++)
if (strstarts(deps[i], "ccan/"))
printf("%s\n", deps[i]);