1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00
freebsd-ports/emulators/simh/files/patch-S3_s3__disk.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

48 lines
2.6 KiB
C

--- S3/s3_disk.c.orig 2016-12-01 22:43:43 UTC
+++ S3/s3_disk.c
@@ -298,7 +298,7 @@ int32 dsk (int32 disk, int32 op, int32 m
addr++;
}
- if ((sect == 55) ) { /* HJS MODS */
+ if (sect == 55) { /* HJS MODS */
S = sect;
N = nsects - i - 2;
if (N > -1) diskerr[disk] |= 0x0020; /* end of cyl. */
@@ -349,7 +349,7 @@ int32 dsk (int32 disk, int32 op, int32 m
diskerr[disk] |= 0x0800;
break;
}
- if ((sect == 55) ) { /* HJS MODS */
+ if (sect == 55) { /* HJS MODS */
S = sect;
N = nsects - i - 2;
if (N > -1) diskerr[disk] |= 0x0020; /* end of cyl. */
@@ -392,7 +392,7 @@ int32 dsk (int32 disk, int32 op, int32 m
diskerr[disk] |= 0x0400;
break;
}
- if ((sect == 55) ) { /* HJS MODS */
+ if (sect == 55) { /* HJS MODS */
S = sect;
N = nsects - i - 2;
if (N > -1) diskerr[disk] |= 0x0020; /* end of cyl. */
@@ -434,7 +434,7 @@ int32 dsk (int32 disk, int32 op, int32 m
diskerr[disk] |= 0x0400;
break;
}
- if ((sect == 55) ) {
+ if (sect == 55) {
S = sect;
N = nsects - i - 2;
if (N > 0) diskerr[disk] |= 0x0020;
@@ -486,7 +486,7 @@ int32 dsk (int32 disk, int32 op, int32 m
found[disk] = 1;
if (res == data)
break;
- if ((sect == 55) ) { /* HJS MODS */
+ if (sect == 55) { /* HJS MODS */
S = sect;
N = nsects - i - 2;
if (N > -1) diskerr[disk] |= 0x0020; /* end of cyl. */