]> git.ozlabs.org Git - ccan/blobdiff - ccan/talloc/_info
modules: update documentation examples so they compile under ccanlint.
[ccan] / ccan / talloc / _info
index ed1a5dda44fc7d18faa43c874ef1f840db3d0e3c..b2440083780a39de357e98aaad973645aab2ea5c 100644 (file)
@@ -49,7 +49,7 @@
  *     }
  *
  *     // This function opens a writable pipe to the given command.
- *     struct command *open_output_cmd(const void *ctx, char *fmt, ...)
+ *     static struct command *open_output_cmd(const void *ctx, char *fmt, ...)
  *     {
  *             va_list ap;
  *             struct command *cmd = talloc(ctx, struct command);
@@ -97,6 +97,7 @@ int main(int argc, char *argv[])
                return 1;
 
        if (strcmp(argv[1], "depends") == 0) {
+               printf("ccan/compiler\n");
                printf("ccan/typesafe_cb\n");
                return 0;
        }