summaryrefslogtreecommitdiffstats
path: root/lib/libc/resolv/herror.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/resolv/herror.c')
-rw-r--r--lib/libc/resolv/herror.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/resolv/herror.c b/lib/libc/resolv/herror.c
index d987609..aeb308c 100644
--- a/lib/libc/resolv/herror.c
+++ b/lib/libc/resolv/herror.c
@@ -76,7 +76,7 @@ const char *h_errlist[] = {
"Unknown server error", /*%< 3 NO_RECOVERY */
"No address associated with name", /*%< 4 NO_ADDRESS */
};
-const int h_nerr = { sizeof h_errlist / sizeof h_errlist[0] };
+const int h_nerr = { nitems(h_errlist) };
#undef h_errno
int h_errno;
OpenPOWER on IntegriCloud