mirror of
https://git.freebsd.org/ports.git
synced 2025-05-29 09:26:27 -04:00
- 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)
20 lines
927 B
C
20 lines
927 B
C
--- sim_tape.c.orig 2016-12-01 22:43:43 UTC
|
|
+++ sim_tape.c
|
|
@@ -404,7 +404,7 @@ t_addr opos;
|
|
t_stat st;
|
|
|
|
opos = uptr->pos; /* old position */
|
|
-if (st = sim_tape_rdlntf (uptr, &tbc)) /* read rec lnt */
|
|
+if ((st = sim_tape_rdlntf (uptr, &tbc))) /* read rec lnt */
|
|
return st;
|
|
*bc = rbc = MTR_L (tbc); /* strip error flag */
|
|
if (rbc > max) { /* rec out of range? */
|
|
@@ -453,7 +453,7 @@ uint32 f = MT_GET_FMT (uptr);
|
|
t_mtrlnt i, rbc, tbc;
|
|
t_stat st;
|
|
|
|
-if (st = sim_tape_rdlntr (uptr, &tbc)) /* read rec lnt */
|
|
+if ((st = sim_tape_rdlntr (uptr, &tbc))) /* read rec lnt */
|
|
return st;
|
|
*bc = rbc = MTR_L (tbc); /* strip error flag */
|
|
if (rbc > max) /* rec out of range? */
|