Merge process_ev into model_ovni_event

This commit is contained in:
Rodrigo Arias 2023-03-21 10:41:51 +01:00 committed by Rodrigo Arias Mallo
parent 06c250500c
commit 2be46393e1

View File

@ -442,11 +442,13 @@ pre_flush(struct emu *emu)
return 0; return 0;
} }
static int int
process_ev(struct emu *emu) model_ovni_event(struct emu *emu)
{ {
if (emu->ev->m != 'O') if (emu->ev->m != 'O') {
err("unexpected event model %c\n", emu->ev->m);
return -1; return -1;
}
switch (emu->ev->c) { switch (emu->ev->c) {
case 'H': case 'H':
@ -470,14 +472,3 @@ process_ev(struct emu *emu)
return 0; return 0;
} }
int
model_ovni_event(struct emu *emu)
{
if (emu->ev->m != 'O') {
err("unexpected event model %c\n", emu->ev->m);
return -1;
}
return process_ev(emu);
}