]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
headers: Consistent use of typeof and/or __typeof__.
authorAlexander Traud <pabstraud@compuserve.com>
Sat, 27 Jan 2018 09:25:11 +0000 (10:25 +0100)
committerAlexander Traud <pabstraud@compuserve.com>
Sat, 27 Jan 2018 09:25:53 +0000 (03:25 -0600)
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

include/asterisk/linkedlists.h

index 8715cf1ad05d9f6bc6eb7a250d45d75e4602c18e..5f50c75354c02826f2303e9a691e9b6b1ffd7775 100644 (file)
@@ -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;                              \