X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-common%2Fdomain-test.c;h=c9ff32e2db3f633ef3d76a2c5adde8a38f9ee4ba;hb=ef51c776fa80e67b84e2a6d48829f9040ac76c20;hp=9926a1f011369ca7f380cc73172344b7078ca04a;hpb=7d45167a88dceefc521bf94a618f29bfc1886932;p=catta diff --git a/avahi-common/domain-test.c b/avahi-common/domain-test.c index 9926a1f..c9ff32e 100644 --- a/avahi-common/domain-test.c +++ b/avahi-common/domain-test.c @@ -30,16 +30,13 @@ #include "domain.h" #include "malloc.h" -int main(int argc, char *argv[]) { +int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { char *s; char t[256], r[256]; const char *p; size_t size; char name[64], type[AVAHI_DOMAIN_NAME_MAX], domain[AVAHI_DOMAIN_NAME_MAX]; - printf("host name: %s\n", s = avahi_get_host_name_strdup()); - avahi_free(s); - printf("%s\n", s = avahi_normalize_name_strdup("foo.foo\\046.")); avahi_free(s); @@ -82,8 +79,6 @@ int main(int argc, char *argv[]) { p = r; printf("unescaped: <%s>\n", avahi_unescape_label(&p, t, sizeof(t))); - assert(avahi_domain_ends_with("foo.bar.\\065\\\\\\.aaaa", "\\065\\\\\\.aaaa")); - assert(avahi_is_valid_service_type_generic("_foo._bar._waldo")); assert(!avahi_is_valid_service_type_strict("_foo._bar._waldo")); assert(!avahi_is_valid_service_subtype("_foo._bar._waldo"));