[Asterisk-code-review] headers: Consistent use of typeof and/or typeof . (asterisk[13])
Alexander Traud
asteriskteam at digium.com
Sat Jan 27 03:25:53 CST 2018
Alexander Traud has uploaded this change for review. ( https://gerrit.asterisk.org/8065
Change subject: headers: Consistent use of typeof and/or __typeof__.
......................................................................
headers: Consistent use of typeof and/or __typeof__.
Because of a copy-and-paste error, the Asterisk project was using __typeof
instead of typeof. It works because typeof, __typeof, and __typeof__ are
supported by GCC, but here the escaped variant was not intended. Therefore,
for consistence, we change this to typeof.
Change-Id: I2a962c3e596e882f691a19345445b14571a5f07c
---
M include/asterisk/linkedlists.h
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/65/8065/1
diff --git a/include/asterisk/linkedlists.h b/include/asterisk/linkedlists.h
index 8715cf1..5f50c75 100644
--- a/include/asterisk/linkedlists.h
+++ b/include/asterisk/linkedlists.h
@@ -854,7 +854,7 @@
*/
#define AST_LIST_REMOVE(head, elm, field) \
({ \
- __typeof(elm) __elm = (elm); \
+ typeof(elm) __elm = (elm); \
if (__elm) { \
if ((head)->first == __elm) { \
(head)->first = __elm->field.next; \
--
To view, visit https://gerrit.asterisk.org/8065
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2a962c3e596e882f691a19345445b14571a5f07c
Gerrit-Change-Number: 8065
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180127/a3acae7f/attachment.html>
More information about the asterisk-code-review
mailing list