Changeset 1569a9b in mainline for uspace/srv/fs/mfs/mfs_balloc.c


Ignore:
Timestamp:
2017-12-24T16:40:33Z (6 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
48fd597
Parents:
a1026da
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-24 16:40:33)
git-committer:
GitHub <noreply@…> (2017-12-24 16:40:33)
Message:

The "not-so-obvious" error handling tweaks. (#9)

Some more changes to enable type-checking with errno_t. Some of the "fixes" here don't quite feel right, but a proper solution would be a more elaborate refactoring of the surrounding code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/mfs/mfs_balloc.c

    ra1026da r1569a9b  
    246246                        printf(NAME ": Error! Trying to free beyond the "
    247247                            "bitmap max size\n");
    248                         return -1;
     248                        return EIO;
    249249                }
    250250        } else {
     
    254254                        printf(NAME ": Error! Trying to free beyond the "
    255255                            "bitmap max size\n");
    256                         return -1;
     256                        return EIO;
    257257                }
    258258        }
     
    303303        unsigned *search, i, start_block;
    304304        unsigned bits_per_block;
    305         int r, freebit;
     305        int r;
     306        int freebit;
    306307
    307308        sbi = inst->sbi;
Note: See TracChangeset for help on using the changeset viewer.