]> git.ozlabs.org Git - ccan/blobdiff - tools/create_dep_tar.c
Rename string to str, and split into three modules.
[ccan] / tools / create_dep_tar.c
index 3a84f8d9d4ef6933579ea1dfababd3ee358d1126..ecf043c56fbddf3df03773deabb5719ca1c62c62 100644 (file)
@@ -4,7 +4,8 @@
 #include <stdio.h>
 #include <string.h>
 #include <sqlite3.h>
-#include "ccan/string/string.h"
+#include "ccan/grab_file/grab_file.h"
+#include "ccan/str_talloc/str_talloc.h"
 #include "ccan/talloc/talloc.h"
 #include "tools/_infotojson/database.h"
 
@@ -61,7 +62,7 @@ create_tar(char **deps, const char *dir, const char *targetdir)
        if (!p)
                err(1, "Executing '%s'", cmd);
 
-       buffer = grab_fd(NULL, fileno(p));
+       buffer = grab_fd(NULL, fileno(p), NULL);
        if (!buffer)
                err(1, "Reading from '%s'", cmd);
        pclose(p);