On 2/6/21 9:32 AM, Peter Krempa wrote:
Remove the need to calculate list lengths. Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx> --- tests/qemuvhostusertest.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/qemuvhostusertest.c b/tests/qemuvhostusertest.c index 17e4e83b99..a34b60c7dd 100644 --- a/tests/qemuvhostusertest.c +++ b/tests/qemuvhostusertest.c @@ -57,14 +57,14 @@ testVUPrecedence(const void *opaque G_GNUC_UNUSED) { g_autofree char *fakehome = NULL; g_auto(GStrv) vuList = NULL; - size_t nvuList; - size_t i; const char *expected[] = { PREFIX "/share/qemu/vhost-user/30-gpu.json", SYSCONFDIR "/qemu/vhost-user/40-gpu.json", PREFIX "/share/qemu/vhost-user/60-gpu.json", + NULL }; - const size_t nexpected = G_N_ELEMENTS(expected); + GStrv e;
Same here. s/GStrv/const char **/
+ GStrv f;
Michal