}
-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) {