From b75c07625c840fc23da6b0af197a4205fd2f478b Mon Sep 17 00:00:00 2001 From: chme Date: Fri, 4 Nov 2016 15:05:03 +0100 Subject: [PATCH] [mdns] Use %zu for size_t in printf (removes warning about wrong argument type) --- src/mdns_avahi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mdns_avahi.c b/src/mdns_avahi.c index 966c03aa..b1cd1cb0 100644 --- a/src/mdns_avahi.c +++ b/src/mdns_avahi.c @@ -392,7 +392,7 @@ avahi_address_make(AvahiAddress *addr, AvahiProtocol proto, const void *rdata, s { 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; } @@ -404,7 +404,7 @@ avahi_address_make(AvahiAddress *addr, AvahiProtocol proto, const void *rdata, s { 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; }