Skip to content

Commit 74296b9

Browse files
AdithyaBaglodynashif
authored andcommitted
include: stats.h: Packed attribute was incorrect.
This header was actually creating a struct in the bss. Fixed it. Signed-off-by: Adithya Baglody <[email protected]>
1 parent ec25b7b commit 74296b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/stats.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ extern "C" {
6161
struct stats_name_map {
6262
u16_t snm_off;
6363
const char *snm_name;
64-
} __packed;
64+
} __attribute__((packed));
6565

6666
struct stats_hdr {
6767
const char *s_name;

0 commit comments

Comments
 (0)