]> git.ozlabs.org Git - ccan/blobdiff - ccan/strmap/strmap.h
strmap: allow const arguments to strset_iterate().
[ccan] / ccan / strmap / strmap.h
index d6104942f4cea6c7cb218bfd386ced9f96ec3b1a..cf77e94959d9cfe1960601be395900f3f9f71353 100644 (file)
@@ -189,8 +189,8 @@ void strmap_clear_(struct strmap *map);
                                                  __typeof__(arg)), (handle)), \
                        (arg))
 void strmap_iterate_(const struct strmap *map,
-                    bool (*handle)(const char *, void *, void *), void *data);
-
+                    bool (*handle)(const char *, void *, void *),
+                    const void *data);
 
 /**
  * strmap_prefix - return a submap matching a prefix