ports/emulators/simh/files/patch-H316_h316__mt.c
Matthew Seaman 7c084f620e 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)
2017-01-03 14:00:47 +00:00

32 lines
1.9 KiB
C

--- 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 */