Changeset 46577995 in mainline for uspace/srv/hid/output/port/ega.c


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/srv/hid/output/port/ega.c

    rfacacc71 r46577995  
    117117}
    118118
    119 static int ega_yield(outdev_t *dev)
     119static errno_t ega_yield(outdev_t *dev)
    120120{
    121121        return EOK;
    122122}
    123123
    124 static int ega_claim(outdev_t *dev)
     124static errno_t ega_claim(outdev_t *dev)
    125125{
    126126        return EOK;
     
    183183};
    184184
    185 int ega_init(void)
     185errno_t ega_init(void)
    186186{
    187187        sysarg_t present;
    188         int rc = sysinfo_get_value("fb", &present);
     188        errno_t rc = sysinfo_get_value("fb", &present);
    189189        if (rc != EOK)
    190190                present = false;
Note: See TracChangeset for help on using the changeset viewer.