diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2017-07-18 03:10:04 -0300 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2018-02-10 10:44:58 +0300 |
commit | 9a6555e21a80498aeac28d3276bbde61ddb30c05 (patch) | |
tree | 44a634af58c1bda809620954a6132ef93795aee2 | |
parent | f96c18965ced5f5502c9547d12f07a255062e4f1 (diff) |
tests/qapi: use QEMU_IS_ALIGNED macro
Applied using the Coccinelle semantic patch scripts/coccinelle/use_osdep.cocci
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
-rw-r--r-- | tests/test-qobject-output-visitor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-qobject-output-visitor.c b/tests/test-qobject-output-visitor.c index 3cf942414c..11e8c5aa40 100644 --- a/tests/test-qobject-output-visitor.c +++ b/tests/test-qobject-output-visitor.c @@ -572,7 +572,7 @@ static void init_native_list(UserDefNativeListUnion *cvalue) boolList **list = &cvalue->u.boolean.data; for (i = 0; i < 32; i++) { *list = g_new0(boolList, 1); - (*list)->value = (i % 3 == 0); + (*list)->value = QEMU_IS_ALIGNED(i, 3); (*list)->next = NULL; list = &(*list)->next; } |