From: Yubin Ruan Date: Mon, 12 Mar 2018 03:24:14 +0000 (+0800) Subject: fix misspelling in the example of container_of X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=99c2539a8bd918c34e2c465f60c63675e70650e3 fix misspelling in the example of container_of From 47c92fe951545e780ca31c598bbcbe5347059b27 Mon Sep 17 00:00:00 2001 From: Yubin Ruan Date: Mon, 12 Mar 2018 11:22:35 +0800 Subject: [PATCH] fix misspelling in the example of container_of Signed-off-by: Yubin Ruan Signed-off-by: David Gibson --- diff --git a/ccan/check_type/check_type.h b/ccan/check_type/check_type.h index 77501a95..837aef7b 100644 --- a/ccan/check_type/check_type.h +++ b/ccan/check_type/check_type.h @@ -43,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) \