about summary refs log tree commit diff
path: root/resolv/inet_net_pton.c
diff options
context:
space:
mode:
Diffstat (limited to 'resolv/inet_net_pton.c')
-rw-r--r--resolv/inet_net_pton.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/resolv/inet_net_pton.c b/resolv/inet_net_pton.c
index ea9b2d4b55..7c863492d7 100644
--- a/resolv/inet_net_pton.c
+++ b/resolv/inet_net_pton.c
@@ -64,7 +64,7 @@ inet_net_pton(af, src, dst, size)
 	case AF_INET:
 		return (inet_net_pton_ipv4(src, dst, size));
 	default:
-		errno = EAFNOSUPPORT;
+		__set_errno (EAFNOSUPPORT);
 		return (-1);
 	}
 }
@@ -192,10 +192,10 @@ inet_net_pton_ipv4(src, dst, size)
 	return (bits);
 
  enoent:
-	errno = ENOENT;
+	__set_errno (ENOENT);
 	return (-1);
 
  emsgsize:
-	errno = EMSGSIZE;
+	__set_errno (EMSGSIZE);
 	return (-1);
 }