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
This commit is contained in:
Bernd Walter 2007-08-01 11:59:09 +00:00
parent 9b93c30d30
commit 1b2d5599a5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=171680

View File

@ -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