Skip to content

Commit

Permalink
Compile warnings
Browse files Browse the repository at this point in the history
- Fix compile warnings on 32bit platforms
  • Loading branch information
jelu committed May 13, 2020
1 parent 4a0616f commit 4b6640f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/print_dnstap.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ static void print_dnstap(const struct dnstap* d)
printf(" query_zone: %s\n", printable_string(dnstap_message_query_zone(*d), dnstap_message_query_zone_length(*d)));
}
if (dnstap_message_has_query_message(*d)) {
printf(" query_message_length: %lu\n", dnstap_message_query_message_length(*d));
printf(" query_message_length: %zu\n", dnstap_message_query_message_length(*d));
printf(" query_message: %s\n", printable_string(dnstap_message_query_message(*d), dnstap_message_query_message_length(*d)));
}
if (dnstap_message_has_response_message(*d)) {
printf(" response_message_length: %lu\n", dnstap_message_response_message_length(*d));
printf(" response_message_length: %zu\n", dnstap_message_response_message_length(*d));
printf(" response_message: %s\n", printable_string(dnstap_message_response_message(*d), dnstap_message_response_message_length(*d)));
}
}
Expand Down

0 comments on commit 4b6640f

Please # to comment.