]> git.ozlabs.org Git - ccan/blobdiff - ccan/talloc/_info.c
Make diag() go to stdout: everything else does.
[ccan] / ccan / talloc / _info.c
index 2a978801cdb4fd87d2309e9891339e09fb3ec999..95c91536b3fafa98d9cac86917d248d7c5bbbbd7 100644 (file)
@@ -31,9 +31,9 @@
  *     #include <stdio.h>
  *     #include <stdarg.h>
  *     #include <err.h>
- *     #include "talloc/talloc.h"
+ *     #include <ccan/talloc/talloc.h>
  *
- *     // A structure containing a popened comman.
+ *     // A structure containing a popened command.
  *     struct command
  *     {
  *             FILE *f;
@@ -79,7 +79,7 @@
  *             struct command *cmd;
  *
  *             if (argc != 2)
- *                     errx(1, "Usage: %s <command>\n");
+ *                     errx(1, "Usage: %s <command>\n", argv[0]);
  *
  *             cmd = open_output_cmd(NULL, "%s hello", argv[1]);
  *             if (!cmd)