]> git.ozlabs.org Git - ccan/blobdiff - ccan/htable/htable_type.h
htable: fix type of htable_type _pick return.
[ccan] / ccan / htable / htable_type.h
index de4cd471404f1d4f22a4e184366a0efe9934da7c..192824c2d9c80649026021b5cd745e6ed63d2326 100644 (file)
                        return name##_del(ht, elem);                    \
                return false;                                           \
        }                                                               \
-       static inline UNNEEDED bool name##_pick(const struct name *ht,  \
+       static inline UNNEEDED type *name##_pick(const struct name *ht, \
                                                size_t seed,            \
                                                struct name##_iter *iter) \
        {                                                               \