Ignore:
Timestamp:
2018-01-04T20:50:52Z (8 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
e211ea04
Parents:
facacc71
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:47:53)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:50:52)
Message:

Use errno_t in all uspace and kernel code.

Change type of every variable, parameter and return value that holds an
<errno.h> constant to either errno_t (the usual case), or sys_errno_t
(some places in kernel). This is for the purpose of self-documentation,
as well as for type-checking with a bit of type definition hackery.

After this commit, HelenOS is free of code that mixes error codes with non-error
values on the assumption that error codes are negative.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/nic/src/nic_wol_virtues.c

    rfacacc71 r46577995  
    7171 * @return ENOMEM       On not enough memory
    7272 */
    73 int nic_wol_virtues_init(nic_wol_virtues_t *wvs)
     73errno_t nic_wol_virtues_init(nic_wol_virtues_t *wvs)
    7474{
    7575        memset(wvs, 0, sizeof(nic_wol_virtues_t));
     
    124124 * @return ENOTSUP      This type is unknown
    125125 */
    126 int nic_wol_virtues_verify(nic_wv_type_t type, const void *data, size_t length)
     126errno_t nic_wol_virtues_verify(nic_wv_type_t type, const void *data, size_t length)
    127127{
    128128        switch (type) {
     
    160160 * @return ENOMEM       Not enough memory to activate the virtue
    161161 */
    162 int nic_wol_virtues_add(nic_wol_virtues_t *wvs, nic_wol_virtue_t *virtue)
     162errno_t nic_wol_virtues_add(nic_wol_virtues_t *wvs, nic_wol_virtue_t *virtue)
    163163{
    164164        if (!nic_wv_is_multi(virtue->type) &&
     
    247247 * @return EINVAL       If the filter type is invalid
    248248 */
    249 int nic_wol_virtues_list(const nic_wol_virtues_t *wvs, nic_wv_type_t type,
     249errno_t nic_wol_virtues_list(const nic_wol_virtues_t *wvs, nic_wv_type_t type,
    250250        size_t max_count, nic_wv_id_t *id_list, size_t *id_count)
    251251{
Note: See TracChangeset for help on using the changeset viewer.