about summary refs log tree commit diff
path: root/resolv/inet_net_ntop.c
diff options
context:
space:
mode:
Diffstat (limited to 'resolv/inet_net_ntop.c')
-rw-r--r--resolv/inet_net_ntop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/resolv/inet_net_ntop.c b/resolv/inet_net_ntop.c
index 80abefcba7..497b0af7c6 100644
--- a/resolv/inet_net_ntop.c
+++ b/resolv/inet_net_ntop.c
@@ -60,7 +60,7 @@ inet_net_ntop(af, src, bits, dst, size)
 	case AF_INET:
 		return (inet_net_ntop_ipv4(src, bits, dst, size));
 	default:
-		errno = EAFNOSUPPORT;
+		__set_errno (EAFNOSUPPORT);
 		return (NULL);
 	}
 }
@@ -91,7 +91,7 @@ inet_net_ntop_ipv4(src, bits, dst, size)
 	int b;
 
 	if (bits < 0 || bits > 32) {
-		errno = EINVAL;
+		__set_errno (EINVAL);
 		return (NULL);
 	}
 	if (bits == 0) {
@@ -134,6 +134,6 @@ inet_net_ntop_ipv4(src, bits, dst, size)
 	return (odst);
 
  emsgsize:
-	errno = EMSGSIZE;
+	__set_errno (EMSGSIZE);
 	return (NULL);
 }