You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
506 B

  1. --- a/parse.c
  2. +++ b/parse.c
  3. @@ -1,3 +1,4 @@
  4. +#include <inttypes.h>
  5. #include <sys/types.h>
  6. #include <sys/stat.h>
  7. #include <sys/mman.h>
  8. @@ -39,7 +40,7 @@ static void print_radiotap_namespace(str
  9. {
  10. switch (iter->this_arg_index) {
  11. case IEEE80211_RADIOTAP_TSFT:
  12. - printf("\tTSFT: %llu\n", le64toh(*(unsigned long long *)iter->this_arg));
  13. + printf("\tTSFT: %" PRIu64 "\n", le64toh(*(uint64_t *)iter->this_arg));
  14. break;
  15. case IEEE80211_RADIOTAP_FLAGS:
  16. printf("\tflags: %02x\n", *iter->this_arg);