diff options
| author | Matias Fontanini <matias.fontanini@gmail.com> | 2019-04-25 18:17:48 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-25 18:17:48 -0700 |
| commit | de247fcbc8923c13b4c8ac54bbdd60584aadb393 (patch) | |
| tree | d8fbca7a23e76043e9233a280d2c5fb6493970a0 | |
| parent | a926b75224783122db6f6a43988b4e292fcce67a (diff) | |
| parent | 7bc4d38470698aaebf8e6a664db1fc9a09adafef (diff) | |
Merge pull request #346 from pallas/avoid-unused-variable-warning
radiotap: avoid unused variable warning
| -rw-r--r-- | src/utils/radiotap_parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/radiotap_parser.cpp b/src/utils/radiotap_parser.cpp index 84e4ead..a7519d4 100644 --- a/src/utils/radiotap_parser.cpp +++ b/src/utils/radiotap_parser.cpp @@ -131,7 +131,7 @@ struct RadioTapFlags { } TINS_END_PACK; #endif -void align_buffer(const uint8_t* buffer_start, const uint8_t*& buffer, uint32_t size, size_t n) { +void align_buffer(const uint8_t* buffer_start, const uint8_t*& buffer, size_t n) { uint32_t offset = (buffer - buffer_start) & (n - 1); if (offset) { offset = n - offset; @@ -278,7 +278,7 @@ bool RadioTapParser::advance_to_next_field() { if (current_bit_ < MAX_RADIOTAP_FIELD) { const uint8_t* radiotap_start = start_ - sizeof(uint32_t); // Skip and align the buffer - align_buffer(radiotap_start, current_ptr_, end_ - radiotap_start, + align_buffer(radiotap_start, current_ptr_, RADIOTAP_METADATA[current_bit_].alignment); return true; } |
