Skip to content

Commit

Permalink
2008-01-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
Browse files Browse the repository at this point in the history
	* hurd/hurdsock.c (_hurd_socket_server): Return the standard
	error EAFNOSUPPORT rather than non-standard EPFNOSUPPORT.
	* sunrpc/bindrsvprt.c (bindresvport): Likewise.
  • Loading branch information
Roland McGrath committed Jan 21, 2008
1 parent 4c53356 commit 173b756
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hurd/hurdsock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion sunrpc/bindrsvprt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 173b756

Please sign in to comment.