]> git.meshlink.io Git - catta/blobdiff - avahi-compat-libdns_sd/txt-test.c
allow passing NULL as callback function in DNSServiceRegister() as documented by...
[catta] / avahi-compat-libdns_sd / txt-test.c
index 61f1292459d48973c44d4c3929afa4e82c1c8fb5..149a38c3e4f6d205630ac24088164d7c446f79a1 100644 (file)
@@ -27,7 +27,8 @@
 #include <assert.h>
 #include <stdio.h>
 
-#include "dns_sd.h"
+#include <avahi-common/gccmacro.h>
+#include <dns_sd.h>
 
 static void hexdump(const void* p, size_t size) {
     const uint8_t *c = p;
@@ -64,7 +65,7 @@ static void hexdump(const void* p, size_t size) {
 }
 
 
-int main(int argc, char *argv[]) {
+int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) {
     const char *r;
     TXTRecordRef ref;
     uint8_t l;