Changeset 25697163 in mainline for uspace/srv/sysman/test/mock_unit.c


Ignore:
Timestamp:
2019-10-06T19:47:15Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
9559cf8
Parents:
102f641
git-author:
Matthieu Riolo <matthieu.riolo@…> (2019-09-06 17:58:36)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-10-06 19:47:15)
Message:

Replacing int with errno_t

The merged code from system-daemon still used the type int
for indicating an error instead of using errno_t. This
commit corrects this mistake

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/sysman/test/mock_unit.c

    r102f641 r25697163  
    7878void mock_add_edge(unit_t *input, unit_t *output)
    7979{
    80         int rc = edge_connect(input, output);
     80        errno_t rc = edge_connect(input, output);
    8181        assert(rc == EOK);
    8282
     
    8787}
    8888
    89 int mock_unit_vmt_start_sync(unit_t *unit)
     89errno_t mock_unit_vmt_start_sync(unit_t *unit)
    9090{
    9191        unit->state = STATE_STARTED;
     
    9393}
    9494
    95 int mock_unit_vmt_start_async(unit_t *unit)
     95errno_t mock_unit_vmt_start_async(unit_t *unit)
    9696{
    9797        unit->state = STATE_STARTING;
Note: See TracChangeset for help on using the changeset viewer.