Changeset 00c31a2 in buchla-68k for ram/dformat.c


Ignore:
Timestamp:
11/15/2017 07:46:27 PM (6 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
58ff1a9
Parents:
72741f4
Message:

Fixed parentheses and braces.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ram/dformat.c

    r72741f4 r00c31a2  
    5555        for (trk = 0; trk < 80; trk++) {
    5656
    57                 if (dferror = (int16_t)XBIOS(X_FORMAT, dfbuf, 0L, 0, 9,
    58                     trk, 0, 1, 0x87654321L, 0xE5E5)) {
     57                if ((dferror = (int16_t)XBIOS(X_FORMAT, dfbuf, 0L, 0, 9,
     58                    trk, 0, 1, 0x87654321L, 0xE5E5))) {
    5959
    6060                        defect = 1;     /* unable to format 1st side */
     
    6464                if (dfsides EQ 2) {     /* format second side */
    6565
    66                         if (dferror = (int16_t)XBIOS(X_FORMAT, dfbuf, 0L, 0, 9,
    67                             trk, 1, 1, 0x87654321L, 0xE5E5)) {
     66                        if ((dferror = (int16_t)XBIOS(X_FORMAT, dfbuf, 0L, 0, 9,
     67                            trk, 1, 1, 0x87654321L, 0xE5E5))) {
    6868
    6969                                defect = 2;     /* unable to format 2nd side */
     
    8080        /* write boot sector to disk */
    8181
    82         if (dferror = (int16_t)XBIOS(X_FLOPWR, dfbuf, 0L, 0, 1, 0, 0, 1)) {
     82        if ((dferror = (int16_t)XBIOS(X_FLOPWR, dfbuf, 0L, 0, 1, 0, 0, 1))) {
    8383
    8484                defect = 3;     /* unable to write boot sector */
     
    101101        }
    102102
    103         if (dferror = (int16_t)BIOS(B_RDWR, 3, dfbuf,
    104             DF_FSIZ, DF_FREC, 0)) {
     103        if ((dferror = (int16_t)BIOS(B_RDWR, 3, dfbuf,
     104            DF_FSIZ, DF_FREC, 0))) {
    105105
    106106                defect = 4;     /* unable to write primary FAT */
     
    108108        }
    109109
    110         if (dferror = (int16_t)BIOS(B_RDWR, 3, dfbuf,
    111             DF_FSIZ, DF_FREC-DF_FSIZ, 0)) {
     110        if ((dferror = (int16_t)BIOS(B_RDWR, 3, dfbuf,
     111            DF_FSIZ, DF_FREC-DF_FSIZ, 0))) {
    112112
    113113                defect = 5;     /* unable to write secondary FAT */
     
    119119        memsetw(dfbuf, 0, 4096);
    120120
    121         if (dferror = (int16_t)BIOS(B_RDWR, 3, dfbuf,
    122             DF_DSIZ, DF_FREC+DF_FSIZ, 0)) {
     121        if ((dferror = (int16_t)BIOS(B_RDWR, 3, dfbuf,
     122            DF_DSIZ, DF_FREC+DF_FSIZ, 0))) {
    123123
    124124                defect = 6;     /* unable to write directory */
Note: See TracChangeset for help on using the changeset viewer.