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/lib/c/include/adt/dyn_array.h

    r102f641 r25697163  
    3636#define LIBC_DYN_ARRAY_H_
    3737
     38#include <errno.h>
    3839#include <stdbool.h>
    3940#include <stddef.h>
     
    8384        size_t _index = (index);                                               \
    8485        dyn_array_t *_da = (dyn_array);                                        \
    85         int rc = dyn_array_reserve(_da, _da->size + 1);                        \
     86        errno_t rc = dyn_array_reserve(_da, _da->size + 1);                        \
    8687        if (!rc) {                                                             \
    8788                _dyn_array_shift(_da, _index, 1);                              \
     
    134135void dyn_array_clear(dyn_array_t *);
    135136void dyn_array_clear_range(dyn_array_t *, size_t, size_t);
    136 extern int dyn_array_concat(dyn_array_t *, dyn_array_t *);
    137 extern int dyn_array_reserve(dyn_array_t *, size_t);
     137extern errno_t dyn_array_concat(dyn_array_t *, dyn_array_t *);
     138extern errno_t dyn_array_reserve(dyn_array_t *, size_t);
    138139
    139140extern void _dyn_array_initialize(dyn_array_t *, size_t);
Note: See TracChangeset for help on using the changeset viewer.