Changeset 25697163 in mainline for uspace/srv/sysman/unit.h


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/unit.h

    r102f641 r25697163  
    120120        void (*destroy)(unit_t *);
    121121
    122         int (*load)(unit_t *, ini_configuration_t *, text_parse_t *);
     122        errno_t (*load)(unit_t *, ini_configuration_t *, text_parse_t *);
    123123
    124         int (*start)(unit_t *);
     124        errno_t (*start)(unit_t *);
    125125
    126         int (*stop)(unit_t *);
     126        errno_t (*stop)(unit_t *);
    127127
    128128        void (*exposee_created)(unit_t *);
     
    150150extern void unit_destroy(unit_t **);
    151151
    152 extern int unit_load(unit_t *, ini_configuration_t *, text_parse_t *);
    153 extern int unit_start(unit_t *);
    154 extern int unit_stop(unit_t *);
     152extern errno_t unit_load(unit_t *, ini_configuration_t *, text_parse_t *);
     153extern errno_t unit_start(unit_t *);
     154extern errno_t unit_stop(unit_t *);
    155155extern void unit_exposee_created(unit_t *);
    156156extern void unit_fail(unit_t *);
Note: See TracChangeset for help on using the changeset viewer.