compile: fix comile warnings

This commit is contained in:
Nick Peng
2020-08-09 18:01:33 +08:00
parent c23ec7ea8f
commit 1923271630
3 changed files with 33 additions and 18 deletions

View File

@@ -110,7 +110,7 @@ struct dns_head {
unsigned short ancount; /* number of answer entries */
unsigned short nscount; /* number of authority entries */
unsigned short nrcount; /* number of addititional resource entries */
} __attribute__((packed));
} __attribute__((packed, aligned(2)));
struct dns_rrs {
unsigned short next;