artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
781be6a
)
Delete ABI compat for osockaddr: 20 years and many ABI bumps since sa_len added
author
guenther
<guenther@openbsd.org>
Mon, 19 Jan 2015 19:47:29 +0000
(19:47 +0000)
committer
guenther
<guenther@openbsd.org>
Mon, 19 Jan 2015 19:47:29 +0000
(19:47 +0000)
ok krw@ bluhm@ deraadt@
sys/kern/uipc_syscalls.c
patch
|
blob
|
history
diff --git
a/sys/kern/uipc_syscalls.c
b/sys/kern/uipc_syscalls.c
index
2d382e3
..
bddd412
100644
(file)
--- a/
sys/kern/uipc_syscalls.c
+++ b/
sys/kern/uipc_syscalls.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: uipc_syscalls.c,v 1.9
7 2014/12/13 21:05:33 doug Exp $
*/
+/* $OpenBSD: uipc_syscalls.c,v 1.9
8 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);