diff options
author | ticso <ticso@FreeBSD.org> | 2007-08-01 11:59:09 +0000 |
---|---|---|
committer | ticso <ticso@FreeBSD.org> | 2007-08-01 11:59:09 +0000 |
commit | 4219e9853a644c4e4ad5145a456c7904619d3891 (patch) | |
tree | 5583215f550cf5525d576a659fc5cc80e9330cda /include/arpa/tftp.h | |
parent | ffbd95e6a799b3696864b727fa9e155561be64f4 (diff) | |
download | FreeBSD-src-4219e9853a644c4e4ad5145a456c7904619d3891.zip FreeBSD-src-4219e9853a644c4e4ad5145a456c7904619d3891.tar.gz |
declare struct tftphdr and embedded union as beeing packed, which is
required for arm.
Tested on: arm, i386, amd64
Approved by: re (rwatson)
MFC after: 1 week
Diffstat (limited to 'include/arpa/tftp.h')
-rw-r--r-- | include/arpa/tftp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/arpa/tftp.h b/include/arpa/tftp.h index 84d7dc1..eef9d4d 100644 --- a/include/arpa/tftp.h +++ b/include/arpa/tftp.h @@ -58,9 +58,9 @@ struct tftphdr { unsigned short tu_block; /* block # */ unsigned short tu_code; /* error code */ char tu_stuff[1]; /* request packet stuff */ - } th_u; + } __packed th_u; char th_data[1]; /* data or error string */ -}; +} __packed; #define th_block th_u.tu_block #define th_code th_u.tu_code |