summaryrefslogtreecommitdiffstats
path: root/avahi-core/dns-test.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-08-13 21:25:09 +0000
committerLennart Poettering <lennart@poettering.net>2005-08-13 21:25:09 +0000
commit4f0a5e7572a4257894b4bfede42c26d65152609e (patch)
tree21e3d5ee20716739590e5931859a4c2052161395 /avahi-core/dns-test.c
parentd6d7d3769441b73ffb5b7af34fef823b41e66312 (diff)
* strip glib from avahi-core
* implement glib memory allocator * add new documentation file MALLOC * initialize pseudo-RNG from /dev/urandom in avahi-daemon * remove some gcc 4.0 warnings * beef up watch system with real timeouts * move GCC __attribute__ macros into its own header avahi-common/gccmacro.h * make use of GCC's sentinel attribute where it make sense * add malloc() implementations that abort on OOM and enable them by default git-svn-id: file:///home/lennart/svn/public/avahi/trunk@308 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-core/dns-test.c')
-rw-r--r--avahi-core/dns-test.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/avahi-core/dns-test.c b/avahi-core/dns-test.c
index bf141f5..e5369a9 100644
--- a/avahi-core/dns-test.c
+++ b/avahi-core/dns-test.c
@@ -23,14 +23,17 @@
#include <config.h>
#endif
+#include <assert.h>
+
#include <avahi-common/domain.h>
+
#include "dns.h"
#include "log.h"
#include "util.h"
int main(int argc, char *argv[]) {
- gchar t[256];
- const gchar *a, *b, *c, *d;
+ char t[256];
+ const char *a, *b, *c, *d;
AvahiDnsPacket *p;
p = avahi_dns_packet_new(0);
@@ -44,19 +47,19 @@ int main(int argc, char *argv[]) {
avahi_dns_packet_consume_name(p, t, sizeof(t));
avahi_log_debug(">%s<", t);
- g_assert(avahi_domain_equal(a, t));
+ assert(avahi_domain_equal(a, t));
avahi_dns_packet_consume_name(p, t, sizeof(t));
avahi_log_debug(">%s<", t);
- g_assert(avahi_domain_equal(b, t));
+ assert(avahi_domain_equal(b, t));
avahi_dns_packet_consume_name(p, t, sizeof(t));
avahi_log_debug(">%s<", t);
- g_assert(avahi_domain_equal(c, t));
+ assert(avahi_domain_equal(c, t));
avahi_dns_packet_consume_name(p, t, sizeof(t));
avahi_log_debug(">%s<", t);
- g_assert(avahi_domain_equal(d, t));
+ assert(avahi_domain_equal(d, t));
avahi_dns_packet_free(p);
return 0;