aboutsummaryrefslogtreecommitdiff
path: root/include/qapi/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/qapi/util.h')
-rw-r--r--include/qapi/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/qapi/util.h b/include/qapi/util.h
index 20dfea8..b825424 100644
--- a/include/qapi/util.h
+++ b/include/qapi/util.h
@@ -62,7 +62,7 @@ int parse_qapi_name(const char *name, bool complete);
#define QAPI_LIST_LENGTH(list) \
({ \
size_t _len = 0; \
- typeof(list) _tail; \
+ typeof_strip_qual(list) _tail; \
for (_tail = list; _tail != NULL; _tail = _tail->next) { \
_len++; \
} \