From: guenther Date: Mon, 19 Jan 2015 19:47:29 +0000 (+0000) Subject: Delete ABI compat for osockaddr: 20 years and many ABI bumps since sa_len added X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2d2fd601dd37a6c96564e0df7b3b1bc2f424a5dc;p=openbsd Delete ABI compat for osockaddr: 20 years and many ABI bumps since sa_len added ok krw@ bluhm@ deraadt@ --- diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index 2d382e3e4a1..bddd412f550 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_syscalls.c,v 1.97 2014/12/13 21:05:33 doug Exp $ */ +/* $OpenBSD: uipc_syscalls.c,v 1.98 2015/01/19 19:47:29 guenther Exp $ */ /* $NetBSD: uipc_syscalls.c,v 1.19 1996/02/09 19:00:48 christos Exp $ */ /* @@ -1013,10 +1013,6 @@ sockargs(struct mbuf **mp, const void *buf, size_t buflen, int type) *mp = m; if (type == MT_SONAME) { sa = mtod(m, struct sockaddr *); -#if BYTE_ORDER != BIG_ENDIAN - if (sa->sa_family == 0 && sa->sa_len < AF_MAX) - sa->sa_family = sa->sa_len; -#endif sa->sa_len = buflen; } return (0);