2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>

* hurd/hurdsock.c (_hurd_socket_server): Return the standard
	error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
	* sunrpc/bindrsvprt.c (bindresvport): Likewise.
This commit is contained in:
Roland McGrath 2008-01-21 01:35:17 +00:00
parent 4c533566c2
commit 173b756d8f
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ _hurd_socket_server (int domain, int dead)
if (server == MACH_PORT_NULL && errno == ENOENT)
/* If the server node is absent, we don't support that protocol. */
errno = EPFNOSUPPORT;
errno = EAFNOSUPPORT;
__mutex_unlock (&lock);
HURD_CRITICAL_END;

View File

@ -61,7 +61,7 @@ bindresvport (int sd, struct sockaddr_in *sin)
}
else if (sin->sin_family != AF_INET)
{
__set_errno (EPFNOSUPPORT);
__set_errno (EAFNOSUPPORT);
return -1;
}