[mdns] Use %zu for size_t in printf (removes warning about wrong

argument type)
This commit is contained in:
chme 2016-11-04 15:05:03 +01:00
parent 91c3eb622c
commit b75c07625c
1 changed files with 2 additions and 2 deletions

View File

@ -392,7 +392,7 @@ avahi_address_make(AvahiAddress *addr, AvahiProtocol proto, const void *rdata, s
{ {
if (size != sizeof(AvahiIPv4Address)) if (size != sizeof(AvahiIPv4Address))
{ {
DPRINTF(E_LOG, L_MDNS, "Got RR type A size %d (should be %d)\n", size, sizeof(AvahiIPv4Address)); DPRINTF(E_LOG, L_MDNS, "Got RR type A size %zu (should be %zu)\n", size, sizeof(AvahiIPv4Address));
return -1; return -1;
} }
@ -404,7 +404,7 @@ avahi_address_make(AvahiAddress *addr, AvahiProtocol proto, const void *rdata, s
{ {
if (size != sizeof(AvahiIPv6Address)) if (size != sizeof(AvahiIPv6Address))
{ {
DPRINTF(E_LOG, L_MDNS, "Got RR type AAAA size %d (should be %d)\n", size, sizeof(AvahiIPv6Address)); DPRINTF(E_LOG, L_MDNS, "Got RR type AAAA size %zu (should be %zu)\n", size, sizeof(AvahiIPv6Address));
return -1; return -1;
} }