Browse code

core: parse_via - padding field when USE_COMP is defined

- align to 32bit to avoid sigbus on accessing fields by address on
strict systems

Daniel-Constantin Mierla authored on 14/06/2021 11:20:25
Showing 1 changed files
... ...
@@ -72,6 +72,7 @@ typedef struct via_body {
72 72
 	unsigned short port;
73 73
 #ifdef USE_COMP
74 74
 	short comp_no;
75
+	short comp_no_pad; /* padding to align to 32bit */
75 76
 #endif
76 77
 	str port_str;
77 78
 	str params;