X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-common%2Fdomain-test.c;h=76f806a65ef622186d5e54952d5b4ee9ccc3dd59;hb=cbe416351c4c1a99df476d3cee4a20af64fb3b89;hp=240f96005c5a0676d6204212589b446936b3758c;hpb=c5544522f6409095627dc3d1129560195ab4ec40;p=catta diff --git a/avahi-common/domain-test.c b/avahi-common/domain-test.c index 240f960..76f806a 100644 --- a/avahi-common/domain-test.c +++ b/avahi-common/domain-test.c @@ -23,26 +23,29 @@ #include #endif -#include "util.h" +#include + +#include "domain.h" +#include "malloc.h" int main(int argc, char *argv[]) { - gchar *s; + char *s; - g_message("host name: %s", s = avahi_get_host_name()); - g_free(s); + printf("host name: %s\n", s = avahi_get_host_name()); + avahi_free(s); - g_message("%s", s = avahi_normalize_name("foo.foo.")); - g_free(s); + printf("%s\n", s = avahi_normalize_name("foo.foo.")); + avahi_free(s); - g_message("%s", s = avahi_normalize_name("\\f\\o\\\\o\\..\\f\\ \\o\\o.")); - g_free(s); + printf("%s\n", s = avahi_normalize_name("\\f\\o\\\\o\\..\\f\\ \\o\\o.")); + avahi_free(s); - g_message("%i", avahi_domain_equal("\\aaa bbb\\.cccc\\\\.dee.fff.", "aaa\\ bbb\\.cccc\\\\.dee.fff")); - g_message("%i", avahi_domain_equal("\\A", "a")); + printf("%i\n", avahi_domain_equal("\\aaa bbb\\.cccc\\\\.dee.fff.", "aaa\\ bbb\\.cccc\\\\.dee.fff")); + printf("%i\n", avahi_domain_equal("\\A", "a")); - g_message("%i", avahi_domain_equal("a", "aaa")); + printf("%i\n", avahi_domain_equal("a", "aaa")); - g_message("%u = %u", avahi_domain_hash("\\Aaaab\\\\."), avahi_domain_hash("aaaa\\b\\\\")); + printf("%u = %u\n", avahi_domain_hash("\\Aaaab\\\\."), avahi_domain_hash("aaaa\\b\\\\")); return 0; }