Since the last patch removed the hack which needed lookahead to see
whether all QEMU_CAPS_ were parsed we can move the fetching of the
arguments into the loop.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
abort();
va_start(argptr, capslatest);
- argname = va_arg(argptr, testQemuInfoArgName);
- while (argname != ARG_END) {
+ while ((argname = va_arg(argptr, testQemuInfoArgName)) != ARG_END) {
switch (argname) {
case ARG_QEMU_CAPS:
fakeCapsUsed = true;
fprintf(stderr, "Unexpected test info argument");
goto cleanup;
}
-
- argname = va_arg(argptr, testQemuInfoArgName);
}
if (!!capsarch ^ !!capsver) {