diff options
author | Marc <foxtrot@malloc.me> | 2023-01-15 20:22:15 +1100 |
---|---|---|
committer | Marc <foxtrot@malloc.me> | 2023-01-15 20:22:18 +1100 |
commit | 19fe0c6fa303bfedc57bf2d83f00e672c3dade47 (patch) | |
tree | d139d18962f6d2b51d63a846097f241fa8bc21d5 /utils | |
parent | acdad92339e601d47b9432fcdf43855b0e328fdd (diff) | |
download | libwifi-19fe0c6fa303bfedc57bf2d83f00e672c3dade47.tar.gz libwifi-19fe0c6fa303bfedc57bf2d83f00e672c3dade47.tar.bz2 libwifi-19fe0c6fa303bfedc57bf2d83f00e672c3dade47.zip |
examples/util: Fix example compilation on 32-bit hosts
Fixes #10
Diffstat (limited to 'utils')
-rw-r--r-- | utils/src/test_parsing.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/src/test_parsing.c b/utils/src/test_parsing.c index b5e2d53..f21894c 100644 --- a/utils/src/test_parsing.c +++ b/utils/src/test_parsing.c | |||
@@ -9,6 +9,7 @@ | |||
9 | #include <stdlib.h> | 9 | #include <stdlib.h> |
10 | #include <string.h> | 10 | #include <string.h> |
11 | #include <sys/types.h> | 11 | #include <sys/types.h> |
12 | #include <inttypes.h> | ||
12 | 13 | ||
13 | #define PCAP_SAVEFILE "/tmp/debug.pcap" | 14 | #define PCAP_SAVEFILE "/tmp/debug.pcap" |
14 | #define FILTER "" | 15 | #define FILTER "" |
@@ -344,7 +345,7 @@ void parse_data_eapol(struct libwifi_frame frame, unsigned char *args, const str | |||
344 | printf("EAPOL: Descriptor: %d\n", data.descriptor); | 345 | printf("EAPOL: Descriptor: %d\n", data.descriptor); |
345 | printf("EAPOL: Key Info: Information: 0x%04x\n", data.key_info.information); | 346 | printf("EAPOL: Key Info: Information: 0x%04x\n", data.key_info.information); |
346 | printf("EAPOL: Key Info: Key Length: %d\n", data.key_info.key_length); | 347 | printf("EAPOL: Key Info: Key Length: %d\n", data.key_info.key_length); |
347 | printf("EAPOL: Key Info: Replay Counter: %llu\n", data.key_info.replay_counter); | 348 | printf("EAPOL: Key Info: Replay Counter: %" PRIu64 "\n", data.key_info.replay_counter); |
348 | printf("EAPOL: Key Info: Nonce: "); | 349 | printf("EAPOL: Key Info: Nonce: "); |
349 | for (size_t i = 0; i < sizeof(data.key_info.nonce); ++i) printf("%02x ", data.key_info.nonce[i]); | 350 | for (size_t i = 0; i < sizeof(data.key_info.nonce); ++i) printf("%02x ", data.key_info.nonce[i]); |
350 | printf("\n"); | 351 | printf("\n"); |