From 2be46393e15e59d822a157dc766db28e48f430da Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Tue, 21 Mar 2023 10:41:51 +0100 Subject: [PATCH] Merge process_ev into model_ovni_event --- src/emu/ovni/event.c | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/src/emu/ovni/event.c b/src/emu/ovni/event.c index 204b347..d88193b 100644 --- a/src/emu/ovni/event.c +++ b/src/emu/ovni/event.c @@ -442,11 +442,13 @@ pre_flush(struct emu *emu) return 0; } -static int -process_ev(struct emu *emu) +int +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; + } switch (emu->ev->c) { case 'H': @@ -470,14 +472,3 @@ process_ev(struct emu *emu) 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); -}