[rtems-libbsd commit] Fix alignment of getsockaddr_sockaddr
Sebastian Huber
sebh at rtems.org
Fri Aug 24 07:08:54 UTC 2018
Module: rtems-libbsd
Branch: master
Commit: 0963419598bac57e8479a81373fbfa496dda8d8e
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=0963419598bac57e8479a81373fbfa496dda8d8e
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Aug 24 09:06:14 2018 +0200
Fix alignment of getsockaddr_sockaddr
---
freebsd/sys/kern/uipc_syscalls.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/freebsd/sys/kern/uipc_syscalls.c b/freebsd/sys/kern/uipc_syscalls.c
index 338dd5d..f301c12 100644
--- a/freebsd/sys/kern/uipc_syscalls.c
+++ b/freebsd/sys/kern/uipc_syscalls.c
@@ -91,7 +91,7 @@ static int getpeername1(struct thread *td, struct getpeername_args *uap,
struct getsockaddr_sockaddr {
struct sockaddr header;
char data[SOCK_MAXADDRLEN - sizeof(struct sockaddr)];
-};
+} __aligned(sizeof(long));
static int getsockaddr(struct sockaddr **namp, caddr_t uaddr, size_t len);
#endif /* __rtems__ */
More information about the vc
mailing list