]> git.ozlabs.org Git - ccan/blobdiff - ccan/opt/opt.c
opt: allow show callbacks to return false.
[ccan] / ccan / opt / opt.c
index 09c8508142341730002a03f6ab4cf9589b1ade61..9149374cb001e6152eb46e03de6cc092ef6e4297 100644 (file)
@@ -162,7 +162,7 @@ static void add_opt(const struct opt_table *entry)
 void _opt_register(const char *names, enum opt_type type,
                   char *(*cb)(void *arg),
                   char *(*cb_arg)(const char *optarg, void *arg),
-                  void (*show)(char *buf, size_t len, const void *arg),
+                  bool (*show)(char *buf, size_t len, const void *arg),
                   const void *arg, const char *desc)
 {
        struct opt_table opt;