]> git.meshlink.io Git - catta/blobdiff - avahi-client/client-test.c
* progress on python port of avahi-discover basic things are in place
[catta] / avahi-client / client-test.c
index 72a8e65530a52fa50de3b68dc928c2554cf12b2f..71d509698680a403926baf859cf417cd49b39336 100644 (file)
@@ -1,11 +1,15 @@
 #include <avahi-client/client.h>
+#include <stdio.h>
 
 int
 main (int argc, char *argv[])
 {
-       AvahiClient *avahi;
+    AvahiClient *avahi;
+    
+    avahi = avahi_client_new ();
 
-       avahi = avahi_client_new ();
+    if (avahi != NULL)
+        free (avahi);
 
-       g_message ("Got server ID %d", avahi->serverid);
+    return 0;
 }