diff options
author | Marc <marc@malloc.me> | 2022-10-16 20:49:36 +0100 |
---|---|---|
committer | Marc <foxtrot@malloc.me> | 2023-01-15 20:32:21 +1100 |
commit | 613555b0c55ebe582ace7581b08fac6b64065710 (patch) | |
tree | 965b3e23078d2232ef7aeed41e974e2fb1a47530 /src | |
parent | f418aabe41c21b7669caff0aed5ed0f2fdfef318 (diff) | |
download | libwifi-613555b0c55ebe582ace7581b08fac6b64065710.tar.gz libwifi-613555b0c55ebe582ace7581b08fac6b64065710.tar.bz2 libwifi-613555b0c55ebe582ace7581b08fac6b64065710.zip |
core/gen: Fix warnings flagged by new compiler options
Diffstat (limited to 'src')
-rw-r--r-- | src/libwifi/core/radiotap/radiotap.c | 5 | ||||
-rw-r--r-- | src/libwifi/gen/management/timing_ad.c | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/libwifi/core/radiotap/radiotap.c b/src/libwifi/core/radiotap/radiotap.c index 5d46223..77786d4 100644 --- a/src/libwifi/core/radiotap/radiotap.c +++ b/src/libwifi/core/radiotap/radiotap.c | |||
@@ -317,7 +317,10 @@ EXPORT | |||
317 | int ieee80211_radiotap_iterator_next(struct ieee80211_radiotap_iterator *iterator) { | 317 | int ieee80211_radiotap_iterator_next(struct ieee80211_radiotap_iterator *iterator) { |
318 | while (1) { | 318 | while (1) { |
319 | int hit = 0; | 319 | int hit = 0; |
320 | int pad, align, size, subns; | 320 | int pad = 0; |
321 | int align = 0; | ||
322 | int size = 0; | ||
323 | int subns = 0; | ||
321 | uint32_t oui; | 324 | uint32_t oui; |
322 | 325 | ||
323 | /* if no more EXT bits, that's it */ | 326 | /* if no more EXT bits, that's it */ |
diff --git a/src/libwifi/gen/management/timing_ad.c b/src/libwifi/gen/management/timing_ad.c index 73a1188..b7985cb 100644 --- a/src/libwifi/gen/management/timing_ad.c +++ b/src/libwifi/gen/management/timing_ad.c | |||
@@ -79,6 +79,7 @@ int libwifi_create_timing_advert(struct libwifi_timing_advert *adv, | |||
79 | offset += sizeof(adv_fields->time_error); | 79 | offset += sizeof(adv_fields->time_error); |
80 | memcpy(element_data + offset, &adv_fields->time_update, sizeof(adv_fields->time_update)); | 80 | memcpy(element_data + offset, &adv_fields->time_update, sizeof(adv_fields->time_update)); |
81 | offset += sizeof(adv_fields->time_update); | 81 | offset += sizeof(adv_fields->time_update); |
82 | break; | ||
82 | } | 83 | } |
83 | default: | 84 | default: |
84 | break; | 85 | break; |