ports/emulators/simh/files/patch-PDP10_pdp10__ksio.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
607 B
C

--- PDP10/pdp10_ksio.c.orig 2016-12-01 22:43:42 UTC
+++ PDP10/pdp10_ksio.c
@@ -401,7 +401,7 @@ uint32 pa = (uint32) ea;
int32 i, n, val;
DIB *dibp;
-for (i = 0; dibp = dib_tab[i]; i++ ) {
+for (i = 0; (dibp = dib_tab[i]); i++ ) {
if ((pa >= dibp->ba) &&
(pa < (dibp->ba + dibp->lnt))) {
dibp->rd (&val, pa, READ);
@@ -418,7 +418,7 @@ uint32 pa = (uint32) ea;
int32 i, n;
DIB *dibp;
-for (i = 0; dibp = dib_tab[i]; i++ ) {
+for (i = 0; (dibp = dib_tab[i]); i++ ) {
if ((pa >= dibp->ba) &&
(pa < (dibp->ba + dibp->lnt))) {
dibp->wr ((int32) val, pa, mode);