ccan.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix misspelling in the example of container_of
@ 2018-03-12  3:24 Yubin Ruan
  2018-03-14  1:16 ` David Gibson
  0 siblings, 1 reply; 2+ messages in thread
From: Yubin Ruan @ 2018-03-12  3:24 UTC (permalink / raw)
  To: ccan

From 47c92fe951545e780ca31c598bbcbe5347059b27 Mon Sep 17 00:00:00 2001
From: Yubin Ruan <ablacktshirt@gmail.com>
Date: Mon, 12 Mar 2018 11:22:35 +0800
Subject: [PATCH] fix misspelling in the example of container_of

Signed-off-by: Yubin Ruan <ablacktshirt@gmail.com>
---
 ccan/check_type/check_type.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ccan/check_type/check_type.h b/ccan/check_type/check_type.h
index 77501a9..837aef7 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)			\
-- 
2.7.4

_______________________________________________
ccan mailing list
ccan@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/ccan

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] fix misspelling in the example of container_of
  2018-03-12  3:24 [PATCH] fix misspelling in the example of container_of Yubin Ruan
@ 2018-03-14  1:16 ` David Gibson
  0 siblings, 0 replies; 2+ messages in thread
From: David Gibson @ 2018-03-14  1:16 UTC (permalink / raw)
  To: Yubin Ruan; +Cc: ccan


[-- Attachment #1.1: Type: text/plain, Size: 1214 bytes --]

On Mon, Mar 12, 2018 at 11:24:14AM +0800, Yubin Ruan wrote:
> From 47c92fe951545e780ca31c598bbcbe5347059b27 Mon Sep 17 00:00:00 2001
> From: Yubin Ruan <ablacktshirt@gmail.com>
> Date: Mon, 12 Mar 2018 11:22:35 +0800
> Subject: [PATCH] fix misspelling in the example of container_of
> 
> Signed-off-by: Yubin Ruan <ablacktshirt@gmail.com>

Applied, thanks.

> ---
>  ccan/check_type/check_type.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/ccan/check_type/check_type.h b/ccan/check_type/check_type.h
> index 77501a9..837aef7 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)			\

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 127 bytes --]

_______________________________________________
ccan mailing list
ccan@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/ccan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-14  1:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-12  3:24 [PATCH] fix misspelling in the example of container_of Yubin Ruan
2018-03-14  1:16 ` David Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).