X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fcheck_type%2Fcheck_type.h;h=837aef7b1a36a85e8a2ef775d9a2c92c6ac796c4;hb=d3d2242ba8d975f8d7ddaa0348953dfd6f45ffce;hp=371fb66471d18149297142298ef281575e1ac34c;hpb=56023cca5f66a40646a1e807c3d10af6e5913623;p=ccan diff --git a/ccan/check_type/check_type.h b/ccan/check_type/check_type.h index 371fb664..837aef7b 100644 --- a/ccan/check_type/check_type.h +++ b/ccan/check_type/check_type.h @@ -1,3 +1,4 @@ +/* CC0 (Public domain) - see LICENSE file for details */ #ifndef CCAN_CHECK_TYPE_H #define CCAN_CHECK_TYPE_H #include "config.h" @@ -38,11 +39,11 @@ * * Example: * // Do subtraction to get to enclosing type, but make sure that - * // pointer is of correct type for that member. + * // pointer is of correct type for that member. * #define container_of(mbr_ptr, encl_type, mbr) \ * (check_types_match((mbr_ptr), &((encl_type *)0)->mbr), \ * ((encl_type *) \ - * ((char *)(mbr_ptr) - offsetof(enclosing_type, mbr)))) + * ((char *)(mbr_ptr) - offsetof(encl_type, mbr)))) */ #if HAVE_TYPEOF #define check_type(expr, type) \