From 9d1898e9f354c7a148682a7a12cafd5926c1133f Mon Sep 17 00:00:00 2001 From: Jasmine Iwanek Date: Sun, 19 Dec 2021 19:54:02 -0500 Subject: [PATCH] Fix a prior derp cleanly --- src/include/86box/serial.h | 2 -- src/machine/m_pcjr.c | 2 +- src/machine/m_xt_zenith.c | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/include/86box/serial.h b/src/include/86box/serial.h index 25512f2c8..a8009f5f9 100644 --- a/src/include/86box/serial.h +++ b/src/include/86box/serial.h @@ -44,8 +44,6 @@ #define SERIAL4_ADDR 0x02e8 #define SERIAL4_IRQ 3 -#define MAX_SERIAL 4 - struct serial_device_s; struct serial_s; diff --git a/src/machine/m_pcjr.c b/src/machine/m_pcjr.c index 482c26ed6..a29d23f0c 100644 --- a/src/machine/m_pcjr.c +++ b/src/machine/m_pcjr.c @@ -867,7 +867,7 @@ machine_pcjr_init(const machine_t *model) device_add(&fdc_pcjr_device); device_add(&i8250_pcjr_device); - serial_set_next_inst(MAX_SERIAL); /* So that serial_standalone_init() won't do anything. */ + serial_set_next_inst(SERIAL_MAX); /* So that serial_standalone_init() won't do anything. */ return ret; } diff --git a/src/machine/m_xt_zenith.c b/src/machine/m_xt_zenith.c index 791ebdcd1..7dc211bf7 100644 --- a/src/machine/m_xt_zenith.c +++ b/src/machine/m_xt_zenith.c @@ -154,7 +154,7 @@ machine_xt_z184_init(const machine_t *model) lpt2_remove(); lpt1_init(0x278); device_add(&i8250_device); - serial_set_next_inst(MAX_SERIAL); /* So that serial_standalone_init() won't do anything. */ + serial_set_next_inst(SERIAL_MAX); /* So that serial_standalone_init() won't do anything. */ device_add(&cga_device);