summaryrefslogtreecommitdiffstats
path: root/avahi-compat-howl/text-test.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-06-25 02:06:54 +0200
committerLennart Poettering <lennart@poettering.net>2010-06-25 02:06:54 +0200
commit35fb9ebe352a141ee9fe72b1e2a160e8c198bd16 (patch)
tree7f839f44a5b31b767d37e52374ee2b8c31bc4a07 /avahi-compat-howl/text-test.c
parentc8eacc0f13f6df529f2f40961e2ddb3a45dc9f93 (diff)
build-sys: almost completely make the build clean, missing are howl and avahi-gobject
Diffstat (limited to 'avahi-compat-howl/text-test.c')
-rw-r--r--avahi-compat-howl/text-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/avahi-compat-howl/text-test.c b/avahi-compat-howl/text-test.c
index e0d6f2c..f1e81e7 100644
--- a/avahi-compat-howl/text-test.c
+++ b/avahi-compat-howl/text-test.c
@@ -36,7 +36,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 +77,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));