diff options
author | Matthew Seaman <matthew@FreeBSD.org> | 2017-01-03 14:00:47 +0000 |
---|---|---|
committer | Matthew Seaman <matthew@FreeBSD.org> | 2017-01-03 14:00:47 +0000 |
commit | 7c084f620e6dcec68140cd4df90f64870cae813b (patch) | |
tree | 0752b4ea3e6f7dda7f1a2ab4235d6bffb9455613 /emulators/simh/files/patch-H316_h316__mt.c | |
parent | 1003c77c0b3d3e460dfd89596ea8c299cc0946c1 (diff) | |
download | ports-7c084f620e6dcec68140cd4df90f64870cae813b.tar.gz ports-7c084f620e6dcec68140cd4df90f64870cae813b.zip |
Notes
Diffstat (limited to 'emulators/simh/files/patch-H316_h316__mt.c')
-rw-r--r-- | emulators/simh/files/patch-H316_h316__mt.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/emulators/simh/files/patch-H316_h316__mt.c b/emulators/simh/files/patch-H316_h316__mt.c new file mode 100644 index 000000000000..f893162684e5 --- /dev/null +++ b/emulators/simh/files/patch-H316_h316__mt.c @@ -0,0 +1,32 @@ +--- H316/h316_mt.c.orig 2016-12-01 22:43:42 UTC ++++ H316/h316_mt.c +@@ -371,17 +371,17 @@ switch (uptr->FNC) { + return SCPE_OK; + + case FNC_WEOF: /* write file mark */ +- if (st = sim_tape_wrtmk (uptr)) /* write tmk, err? */ ++ if ((st = sim_tape_wrtmk (uptr))) /* write tmk, err? */ + r = mt_map_err (uptr, st); /* map error */ + break; /* sched end motion */ + + case FNC_FSR: /* space fwd rec */ +- if (st = sim_tape_sprecf (uptr, &tbc)) /* space fwd, err? */ ++ if ((st = sim_tape_sprecf (uptr, &tbc))) /* space fwd, err? */ + r = mt_map_err (uptr, st); /* map error */ + break; /* sched end motion */ + + case FNC_BSR: /* space rev rec */ +- if (st = sim_tape_sprecr (uptr, &tbc)) /* space rev, err? */ ++ if ((st = sim_tape_sprecr (uptr, &tbc))) /* space rev, err? */ + r = mt_map_err (uptr, st); /* map error */ + break; /* sched end motion */ + +@@ -455,7 +455,7 @@ switch (uptr->FNC) { + mt_wrwd (uptr, mt_buf); + else mt_rdy = 0; /* rdy must be clr */ + if (mt_ptr) { /* any data? */ +- if (st = sim_tape_wrrecf (uptr, mtxb, mt_ptr)) /* write, err? */ ++ if ((st = sim_tape_wrrecf (uptr, mtxb, mt_ptr))) /* write, err? */ + r = mt_map_err (uptr, st); /* map error */ + } + break; /* sched end motion */ |