]> git.ozlabs.org Git - ccan/blobdiff - ccan/pipecmd/_info
tal: add tal_dup_or_null and tal_dup_talarr helpers.
[ccan] / ccan / pipecmd / _info
index a560bfea05ccc4e53807dde67d0546c48b6f0246..824f22e3ddf003ea68884943912044a707717f76 100644 (file)
@@ -32,7 +32,7 @@
  *                     exit(1);
  *             exit(0);
  *     }
- *     child = pipecmd(&outputfd, NULL, NULL, argv[0], "ignoredarg", NULL);
+ *     child = pipecmd(NULL, &outputfd, NULL, argv[0], "ignoredarg", NULL);
  *     if (child < 0)
  *             err(1, "Creating child");
  *     if (read(outputfd, input, sizeof(input)) != sizeof(input))
@@ -51,6 +51,7 @@ int main(int argc, char *argv[])
                return 1;
 
        if (strcmp(argv[1], "depends") == 0) {
+               printf("ccan/closefrom\n");
                printf("ccan/noerr\n");
                return 0;
        }