Changeset f261cc8 in buchla-68k for libcio/fopen.c


Ignore:
Timestamp:
07/16/2017 12:10:45 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
1c4f9be
Parents:
0c06bc5
Message:

Minor cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcio/fopen.c

    r0c06bc5 rf261cc8  
    88#include "ram.h"
    99
    10 FILE *_opener(int8_t *name, int8_t *mode, uint16_t rawflg)
     10FILE *_opener(int8_t *name, int8_t *mode, uint16_t raw)
    1111{
    1212        register FILE *fp;
     
    2626
    2727        case 'r':       /* read mode */
    28                 if ((fp->_unit = open(name, (plusopt ? O_RDWR : O_RDONLY) | rawflg)) EQ -1)
     28                if ((fp->_unit = open(name, (plusopt ? O_RDWR : O_RDONLY) | raw)) EQ -1)
    2929                        return(NULL);
    3030                break;
    3131
    3232        case 'w':       /* write mode */
    33                 if ((fp->_unit = open(name, (plusopt ? O_RDWR : O_WRONLY)|O_CREAT|O_TRUNC|rawflg)) EQ -1)
     33                if ((fp->_unit = open(name, (plusopt ? O_RDWR : O_WRONLY)|O_CREAT|O_TRUNC|raw)) EQ -1)
    3434                        return(NULL);
    3535
     
    3737       
    3838        case 'a':       /* append mode */
    39                 if ((fp->_unit = open(name, (plusopt ? O_RDWR : O_WRONLY)|O_CREAT|rawflg)) EQ -1)
     39                if ((fp->_unit = open(name, (plusopt ? O_RDWR : O_WRONLY)|O_CREAT|raw)) EQ -1)
    4040                        return(NULL);
    4141
Note: See TracChangeset for help on using the changeset viewer.