htable: fix type of htable_type _pick return. master origin/master
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 20 Feb 2020 02:23:11 +0000 (12:53 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 20 Feb 2020 02:23:11 +0000 (12:53 +1030)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
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) \
        {                                                               \