From: Lennart Poettering Date: Wed, 11 Jul 2007 16:35:13 +0000 (+0000) Subject: reindent X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=72c5d38b3a671e987d59ced6396c74185e3ce660;p=catta reindent git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1497 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-core/dns.c b/avahi-core/dns.c index 34a3279..41ccc8f 100644 --- a/avahi-core/dns.c +++ b/avahi-core/dns.c @@ -154,19 +154,16 @@ void avahi_dns_packet_inc_field(AvahiDnsPacket *p, unsigned idx) { } -static void -name_table_cleanup(void *key, void *value, void *user_data) { - AvahiDnsPacket *p = (AvahiDnsPacket *)user_data; - - if ((uint8_t *)value >= AVAHI_DNS_PACKET_DATA(p) + p->size) { - avahi_hashmap_remove(p->name_table, key); - } +static void name_table_cleanup(void *key, void *value, void *user_data) { + AvahiDnsPacket *p = user_data; + + if ((uint8_t*) value >= AVAHI_DNS_PACKET_DATA(p) + p->size) + avahi_hashmap_remove(p->name_table, key); } -void -avahi_dns_packet_cleanup_name_table(AvahiDnsPacket *p) { - if (p->name_table) - avahi_hashmap_foreach(p->name_table, name_table_cleanup, p); +void avahi_dns_packet_cleanup_name_table(AvahiDnsPacket *p) { + if (p->name_table) + avahi_hashmap_foreach(p->name_table, name_table_cleanup, p); } uint8_t* avahi_dns_packet_append_name(AvahiDnsPacket *p, const char *name) {