From 75ab9f513b9dacf4bc0a5ced80ae07fbd979c819 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Thu, 21 Jul 2016 05:45:30 -0700 Subject: [PATCH] PDP10: Fix printer idle flush logic to properly reference the LP20 unit structure --- PDP10/pdp10_lp20.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PDP10/pdp10_lp20.c b/PDP10/pdp10_lp20.c index 02e9d47c..912a7017 100644 --- a/PDP10/pdp10_lp20.c +++ b/PDP10/pdp10_lp20.c @@ -998,7 +998,7 @@ return reason; * So u3 contains the number of seconds desired, and u4 the number to go. */ static void set_flush_timer (UNIT *uptr) { -uptr = (UNIT *)uptr->up7; +uptr = lp20_unit+1; uptr->u4 = uptr->u3; uptr->u5 = (int32)time(NULL); sim_cancel(uptr); @@ -1011,7 +1011,7 @@ if (--uptr->u4 > 0) { sim_activate_after (uptr, uptr->wait); return SCPE_OK; } -uptr = (UNIT *)uptr->up7; +uptr = lp20_unit+1; fflush (uptr->fileref); return SCPE_OK; }