Commit 61f5e61
build: fix compiler issues with missing endian.h include
This commit brings in 2 missing endian.h includes to support the be16toh() call
Without this patch, the following compiler errors occur:
In file included from ./common/memutils.h:17,
from common/authenticator/authenticator.c:31:
common/authenticator/authenticator.c: In function ‘auth_send_eapol’:
common/authenticator/authenticator.c:447:68: warning: implicit declaration of function ‘be16toh’ [-Wimplicit-function-declaration]
447 | val_to_str(hdr->packet_type, eapol_frames, "[UNK]"), be16toh(hdr->packet_body_length));
| ^~~~~~~
common/authenticator/authenticator_eap.c: In function ‘auth_eap_recv’:
common/authenticator/authenticator_eap.c:325:9: warning: implicit declaration of function ‘be16toh’ [-Wimplicit-function-declaration]
325 | if (be16toh(eap->length) > buf_len) {
| ^~~~~~~
Per man endian(3), the be16toh() #define is in <endian.h>
Origin: #331 parent 7f5e9a5 commit 61f5e61
2 files changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
0 commit comments