]> git.ozlabs.org Git - ccan/blobdiff - ccan/talloc/_info.c
ccanlint clean and move endian.h to top of #includes (tests that it doesn't need...
[ccan] / ccan / talloc / _info.c
index bc48736f6a242f07d1e6d3d7af95f35a1ef6f8ba..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)
@@ -88,6 +88,8 @@
  *             talloc_free(cmd);
  *             return 0;
  *     }
+ *
+ * Licence: GPL (2 or any later version)
  */
 int main(int argc, char *argv[])
 {