mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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:
parent
9b93c30d30
commit
1b2d5599a5
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue