mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 17:46:38 -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
1.1 KiB
C
20 lines
1.1 KiB
C
--- 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? */
|