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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/qapi/util.h b/include/qapi/util.h
index 20dfea8..29bc4eb 100644
--- a/include/qapi/util.h
+++ b/include/qapi/util.h
@@ -18,7 +18,7 @@ typedef enum {
typedef struct QEnumLookup {
const char *const *array;
- const unsigned char *const special_features;
+ const uint64_t *const features;
const int size;
} QEnumLookup;
@@ -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++; \
} \