X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fcheck_type%2Fcheck_type.h;h=77501a95597c3e73396c270d54a8ed53a9defbc4;hb=ed6dd33e06c0e8f1c4dd006e0b70d9f2d6ba6c09;hp=1d85df0d3610bac4cd4aefe974c69c1f01b411a7;hpb=74257cee33ae3033f961d5f22a0313b8cb1b18d4;p=ccan diff --git a/ccan/check_type/check_type.h b/ccan/check_type/check_type.h index 1d85df0d..77501a95 100644 --- a/ccan/check_type/check_type.h +++ b/ccan/check_type/check_type.h @@ -1,4 +1,4 @@ -/* Licensed under LGPLv2.1+ - see LICENSE file for details */ +/* CC0 (Public domain) - see LICENSE file for details */ #ifndef CCAN_CHECK_TYPE_H #define CCAN_CHECK_TYPE_H #include "config.h" @@ -12,7 +12,7 @@ * argument is of the expected type. No type promotion of the expression is * done: an unsigned int is not the same as an int! * - * check_type() always evaluates to 1. + * check_type() always evaluates to 0. * * If your compiler does not support typeof, then the best we can do is fail * to compile if the sizes of the types are unequal (a less complete check). @@ -39,7 +39,7 @@ * * 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 *) \