summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/arpa/tftp.h4
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
OpenPOWER on IntegriCloud