[Asterisk-code-review] headers: Consistent use of typeof and/or typeof . (asterisk[15])

Alexander Traud asteriskteam at digium.com
Sat Jan 27 03:26:04 CST 2018


Alexander Traud has uploaded this change for review. ( https://gerrit.asterisk.org/8066


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/66/8066/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/8066
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2a962c3e596e882f691a19345445b14571a5f07c
Gerrit-Change-Number: 8066
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/33ae70ad/attachment-0001.html>


More information about the asterisk-code-review mailing list