summaryrefslogtreecommitdiff
path: root/emulators/simh/files/patch-I7094_i7094__mt.c
diff options
context:
space:
mode:
authorMatthew Seaman <matthew@FreeBSD.org>2017-01-03 14:00:47 +0000
committerMatthew Seaman <matthew@FreeBSD.org>2017-01-03 14:00:47 +0000
commit7c084f620e6dcec68140cd4df90f64870cae813b (patch)
tree0752b4ea3e6f7dda7f1a2ab4235d6bffb9455613 /emulators/simh/files/patch-I7094_i7094__mt.c
parentUpdate to 7.1.0. Changes include: (diff)
Fixes to allow building on 12-CURRENT
- fix build failures in i386 and amd64 due to compiler changes - fix numerous compilation warnings and logical errors that may trap in the future - convert all distribution files from DOS format to ease future changes - convert legacy patch file to new naming convention PR: 214990 Submitted by: bob@eager.cx (maintainer)
Diffstat (limited to 'emulators/simh/files/patch-I7094_i7094__mt.c')
-rw-r--r--emulators/simh/files/patch-I7094_i7094__mt.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/emulators/simh/files/patch-I7094_i7094__mt.c b/emulators/simh/files/patch-I7094_i7094__mt.c
new file mode 100644
index 000000000000..bb2e69142467
--- /dev/null
+++ b/emulators/simh/files/patch-I7094_i7094__mt.c
@@ -0,0 +1,20 @@
+--- I7094/i7094_mt.c.orig 2016-12-01 22:43:42 UTC
++++ I7094/i7094_mt.c
+@@ -564,7 +564,7 @@ switch (uptr->UST) {
+ bc = chrono_rd (xb, MT_MAXFR); /* read clock */
+ else { /* real tape */
+ r = sim_tape_rdrecf (uptr, xb, &bc, MT_MAXFR); /* read record */
+- if (r = mt_map_err (uptr, r)) /* map status */
++ if ((r = mt_map_err (uptr, r))) /* map status */
+ return r;
+ if (mt_unit[ch] == 0) /* disconnected? */
+ return SCPE_OK;
+@@ -736,7 +736,7 @@ if (mt_bptr[ch]) {
+ if (xb == NULL)
+ return SCPE_IERR;
+ r = sim_tape_wrrecf (uptr, xb, mt_bptr[ch]); /* write record */
+- if (r = mt_map_err (uptr, r)) /* map error */
++ if ((r = mt_map_err (uptr, r))) /* map error */
+ return r;
+ }
+ uptr->UST = CHSL_WRS|CHSL_3RD; /* next state */