X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-compat-howl%2Ftext-test.c;h=66ff58b5d41f745d4315827ba5769dba5138c750;hb=ff86d3d651d112d915e4ecb5beee19aa5bfaabcd;hp=e0d6f2c97792680e8336787052fde3994c2ed189;hpb=a97605e07ad7f44f2f65e15be64880e61a39ab43;p=catta diff --git a/avahi-compat-howl/text-test.c b/avahi-compat-howl/text-test.c index e0d6f2c..66ff58b 100644 --- a/avahi-compat-howl/text-test.c +++ b/avahi-compat-howl/text-test.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /*** This file is part of avahi. @@ -36,7 +34,7 @@ static void hexdump(const void* p, size_t size) { const uint8_t *c = p; assert(p); - printf("Dumping %u bytes from %p:\n", size, p); + printf("Dumping %zu bytes from %p:\n", size, p); while (size > 0) { unsigned i; @@ -77,7 +75,7 @@ int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { ASSERT_SW_OKAY(sw_text_record_add_string(r, "foo=bar")); ASSERT_SW_OKAY(sw_text_record_add_string(r, "waldo=baz")); ASSERT_SW_OKAY(sw_text_record_add_key_and_string_value(r, "quux", "nimpf")); - ASSERT_SW_OKAY(sw_text_record_add_key_and_binary_value(r, "quux", "\0\0\0\0", 4)); + ASSERT_SW_OKAY(sw_text_record_add_key_and_binary_value(r, "quux", (void*) "\0\0\0\0", 4)); hexdump(sw_text_record_bytes(r), sw_text_record_len(r));