Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 68a2fab2 in mainline


Ignore:
Timestamp:
2017-12-20T15:50:57Z (4 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master
Children:
3ca4ae9
Parents:
dad8d2d
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-20 15:46:56)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-20 15:50:57)
Message:

Use defined macros instead of literal number in str_error.c array.
This makes the code more robust against changes to the way errno_t type
is defined.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/str_error.c

    rdad8d2d r68a2fab2  
    4848
    4949#undef __errno_entry
    50 #define __errno_entry(name, num, desc) num,
     50#define __errno_entry(name, num, desc) name,
    5151
    52 static const int err_num[] = {
     52static const errno_t err_num[] = {
    5353#include <abi/errno.in>
    5454};
Note: See TracChangeset for help on using the changeset viewer.