1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/emulators/simh/files/patch-SDS_sds__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

20 lines
1.0 KiB
C

--- SDS/sds_mt.c.orig 2016-12-01 22:43:43 UTC
+++ SDS/sds_mt.c
@@ -235,14 +235,14 @@ switch (fnc) {
case IO_DISC: /* disconnect */
sim_cancel (uptr); /* no more xfr's */
if (inst & DEV_OUT) { /* write? */
- if (r = mt_wrend (inst)) /* end record */
+ if ((r = mt_wrend (inst))) /* end record */
return r;
}
break;
case IO_WREOR: /* write eor */
chan_set_flag (mt_dib.chan, CHF_EOR); /* set eor flg */
- if (r = mt_wrend (inst)) /* end record */
+ if ((r = mt_wrend (inst))) /* end record */
return r;
mt_gap = 1; /* in gap */
sim_activate (uptr, mt_gtime); /* start timer */