diff options
Diffstat (limited to 'stdio-common/errlist.c')
-rw-r--r-- | stdio-common/errlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stdio-common/errlist.c b/stdio-common/errlist.c index 0f1b72b..e8d0f62 100644 --- a/stdio-common/errlist.c +++ b/stdio-common/errlist.c @@ -15,9 +15,9 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ +#include <array_length.h> #include <stddef.h> - const char *const _sys_errlist[] = { "Error 0", /* 0 */ @@ -33,4 +33,4 @@ const char *const _sys_errlist[] = "Too many open files", /* 10 = EMFILE */ }; -const int _sys_nerr = sizeof (_sys_errlist) / sizeof (_sys_errlist[0]); +const int _sys_nerr = array_length (_sys_errlist); |