X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftalloc%2F_info.c;h=95c91536b3fafa98d9cac86917d248d7c5bbbbd7;hp=bc48736f6a242f07d1e6d3d7af95f35a1ef6f8ba;hb=be74c29bc91273ce585139b2b1f7305512ae941b;hpb=650c775ff00cccd03fc84e7789a03c51d9839004 diff --git a/ccan/talloc/_info.c b/ccan/talloc/_info.c index bc48736f..95c91536 100644 --- a/ccan/talloc/_info.c +++ b/ccan/talloc/_info.c @@ -31,9 +31,9 @@ * #include * #include * #include - * #include "talloc/talloc.h" + * #include * - * // 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 \n"); + * errx(1, "Usage: %s \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[]) {