diff src/protocols/rendezvous/mdns_cache.c @ 9944:e4a27c9aec4c

[gaim-migrate @ 10838] with much rejoicing, and massive thanks to the efforts of Christian, and all who have helped him, I present to you the incomplete status rewrite! committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Fri, 03 Sep 2004 21:35:52 +0000
parents ad3633f92f91
children 269029c55169
line wrap: on
line diff
--- a/src/protocols/rendezvous/mdns_cache.c	Fri Sep 03 21:21:25 2004 +0000
+++ b/src/protocols/rendezvous/mdns_cache.c	Fri Sep 03 21:35:52 2004 +0000
@@ -51,8 +51,6 @@
 void
 mdns_cache_add(const ResourceRecord *rr)
 {
-	ResourceRecord *new;
-
 	g_return_if_fail(rr != NULL);
 	g_return_if_fail((rr->type != 0) && (rr->type != RENDEZVOUS_RRTYPE_ALL));
 
@@ -78,15 +76,14 @@
 	mdns_free_rr(rr);
 }
 
-void
-mdns_cache_remove_all()
+void mdns_cache_remove_all()
 {
-	mdns_free_rrs(rrs);
+	while (resourcerecords != NULL)
+		mdns_cache_remove(resourcerecords->data);
 	rrs = NULL;
 }
 
-void
-mdns_cache_respond(int fd, const Question *q)
+void mdns_cache_respond(int fd, Question *q)
 {
 	GSList *slist;
 	ResourceRecord *cur;