X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fhtable%2Fhtable_type.h;h=af9da1b22692baa0331241a0bde56a84899a6165;hb=805ea0672938b40dea437ca68f32bf3380c191ed;hp=6fe05e2fd8de9bf837451c1ba745b993e0e1c566;hpb=198d85adf5e8d9a44b7436bdd046dbffce66b23a;p=ccan diff --git a/ccan/htable/htable_type.h b/ccan/htable/htable_type.h index 6fe05e2f..af9da1b2 100644 --- a/ccan/htable/htable_type.h +++ b/ccan/htable/htable_type.h @@ -1,3 +1,4 @@ +/* Licensed under LGPLv2+ - see LICENSE file for details */ #ifndef CCAN_HTABLE_TYPE_H #define CCAN_HTABLE_TYPE_H #include @@ -63,7 +64,7 @@ static inline type *htable_##name##_get(const struct htable_##name *ht, \ const HTABLE_KTYPE(keyof) k) \ { \ /* Typecheck for cmpfn */ \ - (void)sizeof(cmpfn(keyof((const type *)NULL), \ + (void)sizeof(cmpfn((const type *)NULL, \ keyof((const type *)NULL))); \ return (type *)htable_get((const struct htable *)ht, \ hashfn(k), \