Displaying 1 result from an estimated 1 matches for "e0687a6f".
Did you mean:
e0687a6
2020 Mar 28
0
[klibc:master] nfsmount: Fix alignment of packet structures
..."aligned(4)" so that it is definitely exactly 4-byte
aligned.
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/kinit/nfsmount/mount.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/usr/kinit/nfsmount/mount.c b/usr/kinit/nfsmount/mount.c
index e0687a6f..ae48354b 100644
--- a/usr/kinit/nfsmount/mount.c
+++ b/usr/kinit/nfsmount/mount.c
@@ -34,13 +34,13 @@ struct mount_call {
struct nfs_fh_wire {
uint32_t size;
char data[NFS_MAXFHSIZE_WIRE];
-} __attribute__ ((packed));
+} __attribute__ ((packed, aligned(4)));
struct mount_reply {
struct r...