Skip to content

Commit

Permalink
radiotap/parse: fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gemesa committed Mar 24, 2023
1 parent 2c8ff3f commit ddd8db6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/radiotap/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 2.6)
cmake_minimum_required(VERSION 2.8.12)
project(radiotap)

add_definitions("-D_BSD_SOURCE -DRADIOTAP_SUPPORT_OVERRIDES")
add_definitions("-D_BSD_SOURCE -D_DEFAULT_SOURCE -DRADIOTAP_SUPPORT_OVERRIDES")

add_library(radiotap SHARED radiotap.c)
set_target_properties(radiotap PROPERTIES
Expand Down
2 changes: 1 addition & 1 deletion lib/radiotap/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static void print_radiotap_namespace(struct ieee80211_radiotap_iterator *iter)
{
switch (iter->this_arg_index) {
case IEEE80211_RADIOTAP_TSFT:
printf("\tTSFT: %llu\n", le64toh(*(unsigned long long *)iter->this_arg));
printf("\tTSFT: %llu\n", (unsigned long long)le64toh(*(unsigned long long *)iter->this_arg));
break;
case IEEE80211_RADIOTAP_FLAGS:
printf("\tflags: %02x\n", *iter->this_arg);
Expand Down

0 comments on commit ddd8db6

Please sign in to comment.