Skip to content

Commit

Permalink
Merge pull request #346 from pallas/avoid-unused-variable-warning
Browse files Browse the repository at this point in the history
radiotap: avoid unused variable warning
  • Loading branch information
mfontanini authored Apr 26, 2019
2 parents a926b75 + 7bc4d38 commit de247fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/radiotap_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit de247fc

Please sign in to comment.