From 9bf37d3d6b40fdf16221f6cb5ba1ba867531f2e0 Mon Sep 17 00:00:00 2001 From: Seth Morabito Date: Sat, 24 Apr 2021 08:50:09 -0700 Subject: [PATCH] 3B2: Don't clobber number of serial lines Serial line setup was inadvertantly clobbering the number of lines on initial setup, leading to potential invalid configuration. --- 3B2/3b2_ports.c | 1 - 3B2/3b2_ports.h | 1 - 2 files changed, 2 deletions(-) diff --git a/3B2/3b2_ports.c b/3B2/3b2_ports.c index f54a87ba..9ace8370 100644 --- a/3B2/3b2_ports.c +++ b/3B2/3b2_ports.c @@ -626,7 +626,6 @@ t_stat ports_reset(DEVICE *dptr) ports_conf = TRUE; if (ports_ldsc == NULL) { - ports_desc.lines = DEF_PORTS_CARDS * PORTS_LINES; ports_desc.ldsc = ports_ldsc = (TMLN *)calloc(ports_desc.lines, sizeof(*ports_ldsc)); } diff --git a/3B2/3b2_ports.h b/3B2/3b2_ports.h index c5d5162e..928dce63 100644 --- a/3B2/3b2_ports.h +++ b/3B2/3b2_ports.h @@ -51,7 +51,6 @@ #define PORTS_IPL 10 #define PORTS_VERSION 1 -#define DEF_PORTS_CARDS 1 #define MAX_PORTS_CARDS 12 #define PORTS_LINES 4 #define PORTS_RCV_QUEUE 5