[ccan] [PATCH] fix misuse of typesafe_cb_cast() in example
David Gibson
david at gibson.dropbear.id.au
Wed Mar 14 15:54:28 AEDT 2018
On Wed, Mar 14, 2018 at 11:16:42AM +0800, Yubin Ruan wrote:
> From 32f86c701ab0e0ad0ad6981314a9bff2dc5ebb74 Mon Sep 17 00:00:00 2001
> From: Yubin Ruan <ablacktshirt at gmail.com>
> Date: Wed, 14 Mar 2018 11:14:54 +0800
> Subject: [PATCH] fix misuse of typesafe_cb_cast() in example
>
> Signed-off-by: Yubin Ruan <ablacktshirt at gmail.com>
Applied, thanks.
> ---
> ccan/typesafe_cb/typesafe_cb.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/ccan/typesafe_cb/typesafe_cb.h b/ccan/typesafe_cb/typesafe_cb.h
> index 942d5c2..126d325 100644
> --- a/ccan/typesafe_cb/typesafe_cb.h
> +++ b/ccan/typesafe_cb/typesafe_cb.h
> @@ -27,7 +27,7 @@
> * // We can take either an unsigned long or a void *.
> * void _set_some_value(void *val);
> * #define set_some_value(e) \
> - * _set_some_value(typesafe_cb_cast(void *, (e), unsigned long))
> + * _set_some_value(typesafe_cb_cast(void *, unsigned long, (e)))
> */
> #define typesafe_cb_cast(desttype, oktype, expr) \
> __builtin_choose_expr( \
--
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/ccan/attachments/20180314/a482bffb/attachment.sig>
More information about the ccan
mailing list