Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 10aaa2c in mainline


Ignore:
Timestamp:
2017-12-20T15:44:08Z (4 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master
Children:
dad8d2d
Parents:
999efa9
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-20 15:14:20)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-20 15:44:08)
Message:

Return -1 instead of ENOENT from inbox_get().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/vfs/inbox.c

    r999efa9 r10aaa2c  
    120120 *
    121121 * @param name Name of the entry.
    122  * @return Requested file or ENOENT if not set.
     122 * @return Requested file or -1 if not set.
    123123 */
    124124int inbox_get(const char *name)
     
    130130                        return e->file;
    131131                case 1:
    132                         return ENOENT;
     132                        return -1;
    133133                }
    134134        }
    135135
    136         return ENOENT;
     136        return -1;
    137137}
    138138
Note: See TracChangeset for help on using the changeset viewer.