summaryrefslogtreecommitdiffstats
path: root/freebsd/lib/libc/resolv/herror.c
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/lib/libc/resolv/herror.c')
-rw-r--r--freebsd/lib/libc/resolv/herror.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/freebsd/lib/libc/resolv/herror.c b/freebsd/lib/libc/resolv/herror.c
index aea3a745..1c6900b0 100644
--- a/freebsd/lib/libc/resolv/herror.c
+++ b/freebsd/lib/libc/resolv/herror.c
@@ -56,7 +56,6 @@ __FBSDID("$FreeBSD$");
#include "port_before.h"
#include "namespace.h"
-#include <sys/types.h>
#include <rtems/bsd/sys/param.h>
#include <sys/uio.h>
@@ -78,7 +77,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;