From 19fe0c6fa303bfedc57bf2d83f00e672c3dade47 Mon Sep 17 00:00:00 2001 From: Marc Date: Sun, 15 Jan 2023 20:22:15 +1100 Subject: examples/util: Fix example compilation on 32-bit hosts Fixes #10 --- examples/parse_eapol/parse_eapol.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/parse_eapol/parse_eapol.c') diff --git a/examples/parse_eapol/parse_eapol.c b/examples/parse_eapol/parse_eapol.c index e8f2827..fb42437 100644 --- a/examples/parse_eapol/parse_eapol.c +++ b/examples/parse_eapol/parse_eapol.c @@ -5,6 +5,7 @@ #include #include #include +#include static int has_radiotap = 0; @@ -38,7 +39,7 @@ void handle_pkt(unsigned char *args, const struct pcap_pkthdr *header, const uns printf("EAPOL: Descriptor: %d\n", data.descriptor); printf("EAPOL: Key Info: Information: 0x%04x\n", data.key_info.information); printf("EAPOL: Key Info: Key Length: %d\n", data.key_info.key_length); - printf("EAPOL: Key Info: Replay Counter: %llu\n", data.key_info.replay_counter); + printf("EAPOL: Key Info: Replay Counter: %" PRIu64 "\n", data.key_info.replay_counter); printf("EAPOL: Key Info: Nonce: "); for (size_t i = 0; i < sizeof(data.key_info.nonce); ++i) { printf("%02x ", data.key_info.nonce[i]); -- cgit 1.4.1