@@ -2748,9 +2748,9 @@ static const QEMUOption *lookup_opt(int argc, char **argv,
return popt;
}
-static MachineClass *select_machine(MachineClass *dflt)
+static MachineClass *select_machine(void)
{
- MachineClass *machine_class = dflt;
+ MachineClass *machine_class = find_default_machine();
const char *optarg;
QemuOpts *opts;
Location loc;
@@ -4067,7 +4067,7 @@ int main(int argc, char **argv, char **envp)
replay_configure(icount_opts);
- machine_class = select_machine(find_default_machine());
+ machine_class = select_machine();
set_memory_options(&ram_slots, &maxram_size, machine_class);