Changeset 5150ab0 in rtems


Ignore:
Timestamp:
Oct 22, 2003, 4:35:02 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
49f466c
Parents:
843805f7
Message:

2003-10-22 Ralf Corsepius <corsepiu@…>

PR 509/filesystem

  • src/dosfs/fat.c: _fat_block_read and _fat_block_write return error codes instead of -1 in case of errors, as they are supposed to do according to the comments documenting these functions.
Location:
cpukit/libfs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/ChangeLog

    r843805f7 r5150ab0  
     12003-10-22      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        PR 509/filesystem
     4        * src/dosfs/fat.c: _fat_block_read and _fat_block_write return error
     5        codes instead of -1 in case of errors, as they are supposed to do
     6        according to the comments documenting these functions.
     7
    182003-10-21      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
    29
  • cpukit/libfs/src/dosfs/fat.c

    r843805f7 r5150ab0  
    6565        rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block);
    6666        if (rc != RC_OK)
    67             return rc;
    68    
     67            return -1;
     68
    6969        c = MIN(count, (fs_info->vol.bps - ofs));
    7070        memcpy((buff + cmpltd), (block->buffer + ofs), c);
     
    120120            rc = fat_buf_access(fs_info, blk, FAT_OP_TYPE_READ, &block);
    121121        if (rc != RC_OK)
    122             return rc;
     122            return -1;
    123123   
    124124        memcpy((block->buffer + ofs), (buff + cmpltd), c);
Note: See TracChangeset for help on using the changeset viewer.