]> git.ozlabs.org Git - ccan/blobdiff - ccan/opt/opt.c
ccan: update show callback to take explicit length.
[ccan] / ccan / opt / opt.c
index ef711d2c51889190c4190cc4f85c54c470808abc..09c8508142341730002a03f6ab4cf9589b1ade61 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[OPT_SHOW_LEN], const void *arg),
+                  void (*show)(char *buf, size_t len, const void *arg),
                   const void *arg, const char *desc)
 {
        struct opt_table opt;