]> git.ozlabs.org Git - ccan/blobdiff - ccan/check_type/check_type.h
pipecmd: reverse order of args to match documentation; add pipecmd_preserve.
[ccan] / ccan / check_type / check_type.h
index b199347116b07dbc2f2e5e843345334195559ba1..837aef7b1a36a85e8a2ef775d9a2c92c6ac796c4 100644 (file)
@@ -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"
@@ -42,7 +43,7 @@
  *     #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)                 \