Changeset 08c09e24 in rtems for cpukit/libfs/src/dosfs/fat.c


Ignore:
Timestamp:
Oct 22, 2003, 4:35:18 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
aab4664d
Parents:
897fe13
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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/dosfs/fat.c

    r897fe13 r08c09e24  
    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.