aboutsummaryrefslogtreecommitdiff
path: root/emulators/simh/files/patch-Interdata_id__dp.c
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/simh/files/patch-Interdata_id__dp.c')
-rw-r--r--emulators/simh/files/patch-Interdata_id__dp.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/emulators/simh/files/patch-Interdata_id__dp.c b/emulators/simh/files/patch-Interdata_id__dp.c
new file mode 100644
index 000000000000..c7e44ef8d5c6
--- /dev/null
+++ b/emulators/simh/files/patch-Interdata_id__dp.c
@@ -0,0 +1,20 @@
+--- Interdata/id_dp.c.orig 2016-12-01 22:43:42 UTC
++++ Interdata/id_dp.c
+@@ -419,7 +419,7 @@ switch (dp_cmd & 0x7) {
+ if (sch_actv (dp_dib.sch, dp_dib.dno)) { /* sch transfer? */
+ if (dp_dter (uptr, dp_1st)) /* check xfr err */
+ return SCPE_OK;
+- if (r = dp_rds (uptr)) /* read sec, err? */
++ if ((r = dp_rds (uptr))) /* read sec, err? */
+ return r;
+ dp_1st = 0;
+ t = sch_wrmem (dp_dib.sch, dpxb, DP_NUMBY); /* write to memory */
+@@ -438,7 +438,7 @@ switch (dp_cmd & 0x7) {
+ return SCPE_OK;
+ dp_bptr = sch_rdmem (dp_dib.sch, dpxb, DP_NUMBY); /* read from mem */
+ dp_db = dpxb[dp_bptr - 1]; /* last byte */
+- if (r = dp_wds (uptr)) /* write sec, err? */
++ if ((r = dp_wds (uptr))) /* write sec, err? */
+ return r;
+ dp_1st = 0;
+ if (sch_actv (dp_dib.sch, dp_dib.dno)) { /* more to do? */