]> git.meshlink.io Git - catta/blobdiff - avahi-core/resolve-host-name.c
Make AVAHI_PROTO_xxx well defined constants
[catta] / avahi-core / resolve-host-name.c
index d9c334126bfd48766c06ef2c7736f7cbcd6db5d3..7bb5727bb4d6dc7e324ffbbbf37f8315921b1466 100644 (file)
@@ -72,12 +72,12 @@ static void finish(AvahiSHostNameResolver *r, AvahiResolverEvent event) {
     
         switch (r->address_record->key->type) {
             case AVAHI_DNS_TYPE_A:
-                a.family = AVAHI_PROTO_INET;
+                a.proto = AVAHI_PROTO_INET;
                 a.data.ipv4 = r->address_record->data.a.address;
                 break;
                 
             case AVAHI_DNS_TYPE_AAAA:
-                a.family = AVAHI_PROTO_INET6;
+                a.proto = AVAHI_PROTO_INET6;
                 a.data.ipv6 = r->address_record->data.aaaa.address;
                 break;