]> git.meshlink.io Git - catta/blobdiff - avahi-core/server.c
implement new main loop abstraction layer
[catta] / avahi-core / server.c
index d9137385dd91fcd48b593fb7c8faf56eed8b31f4..241932fbd869be29714469916914f0d8008d336c 100644 (file)
@@ -32,9 +32,9 @@
 #include <stdio.h>
 
 #include <avahi-common/domain.h>
+#include <avahi-common/timeval.h>
 
 #include "server.h"
-#include "timeval.h"
 #include "iface.h"
 #include "socket.h"
 #include "browse.h"
@@ -459,9 +459,9 @@ void avahi_server_generate_response(AvahiServer *s, AvahiInterface *i, AvahiDnsP
                         reply = avahi_dns_packet_new_reply(p, size, FALSE, TRUE);
 
                         if (!avahi_dns_packet_append_record(reply, r, flush_cache, 0)) {
+                            gchar *t;
                             avahi_dns_packet_free(reply);
-                            
-                            gchar *t = avahi_record_to_string(r);
+                            t = avahi_record_to_string(r);
                             avahi_log_warn("Record [%s] too large, doesn't fit in any packet!", t);
                             g_free(t);
                             break;