diff options
author | Olivier Houchard <cognet@FreeBSD.org> | 2007-05-21 14:38:45 +0000 |
---|---|---|
committer | Olivier Houchard <cognet@FreeBSD.org> | 2007-05-21 14:38:45 +0000 |
commit | e81f504954bbf3503d77c2312128903bc850ec16 (patch) | |
tree | f422c0ecc7bd0250c13389dd62a48385a5779829 /sbin/ping/ping.c | |
parent | d10f3ce07f31c663f8b55971d53df735851ec79e (diff) | |
download | src-e81f504954bbf3503d77c2312128903bc850ec16.tar.gz src-e81f504954bbf3503d77c2312128903bc850ec16.zip |
Force the alignment of the chars arrays, as they are casted later to
structs.
gcc 4.2 doesn't do it by default, and that results in unaligned access on
arm.
Notes
Notes:
svn path=/head/; revision=169833
Diffstat (limited to 'sbin/ping/ping.c')
-rw-r--r-- | sbin/ping/ping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c index 90e2869dbc35..be5f66e32cc7 100644 --- a/sbin/ping/ping.c +++ b/sbin/ping/ping.c @@ -226,7 +226,7 @@ main(argc, argv) struct msghdr msg; struct sigaction si_sa; size_t sz; - u_char *datap, packet[IP_MAXPACKET]; + u_char *datap, packet[IP_MAXPACKET] __aligned(4); char *ep, *source, *target, *payload; struct hostent *hp; #ifdef IPSEC_POLICY_IPSEC |