Mercurial > pidgin
diff src/protocols/rendezvous/mdns_cache.c @ 9965:269029c55169
[gaim-migrate @ 10874]
I don't even want to know what happened with the merge for rendezvous...
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 08 Sep 2004 00:21:47 +0000 |
parents | e4a27c9aec4c |
children |
line wrap: on
line diff
--- a/src/protocols/rendezvous/mdns_cache.c Tue Sep 07 18:56:50 2004 +0000 +++ b/src/protocols/rendezvous/mdns_cache.c Wed Sep 08 00:21:47 2004 +0000 @@ -31,7 +31,7 @@ GSList *rrs = NULL; static ResourceRecord * -mdns_cache_find(gchar *name, unsigned short type) +mdns_cache_find(const gchar *name, unsigned short type) { ResourceRecord *rr; GSList *cur; @@ -51,6 +51,8 @@ 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)); @@ -61,7 +63,7 @@ } void -mdns_cache_remove(gchar *name, unsigned short type) +mdns_cache_remove(const gchar *name, unsigned short type) { ResourceRecord *rr; @@ -76,14 +78,15 @@ mdns_free_rr(rr); } -void mdns_cache_remove_all() +void +mdns_cache_remove_all() { - while (resourcerecords != NULL) - mdns_cache_remove(resourcerecords->data); + mdns_free_rrs(rrs); rrs = NULL; } -void mdns_cache_respond(int fd, Question *q) +void +mdns_cache_respond(int fd, const Question *q) { GSList *slist; ResourceRecord *cur;