summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Traud <pabstraud@compuserve.com>2018-01-27 10:25:11 +0100
committerAlexander Traud <pabstraud@compuserve.com>2018-01-27 10:25:11 +0100
commitc38da18ec613244255c188f25b3bb38ebd4c5965 (patch)
tree41de97772ec4f3ba47afbb9f7368b90a47b90e5f /include
parentda5859246db94d9852323b1357401559f162d7ba (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/linkedlists.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asterisk/linkedlists.h b/include/asterisk/linkedlists.h
index 8715cf1ad..5f50c7535 100644
--- a/include/asterisk/linkedlists.h
+++ b/include/asterisk/linkedlists.h
@@ -854,7 +854,7 @@ struct { \
*/
#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; \