libpurple/network.c

branch
vv
changeset 26263
725845e88ebf
parent 26262
1ad96aa2e92a
child 26292
14fa95350f0c
equal deleted inserted replaced
26262:1ad96aa2e92a 26263:725845e88ebf
771 g_slist_free(hosts); 771 g_slist_free(hosts);
772 return; 772 return;
773 } 773 }
774 774
775 if (hosts && g_slist_next(hosts)) { 775 if (hosts && g_slist_next(hosts)) {
776 size_t addr_len = (size_t) hosts->data;
777 struct sockaddr *addr = g_slist_next(hosts)->data; 776 struct sockaddr *addr = g_slist_next(hosts)->data;
778 char dst[INET6_ADDRSTRLEN]; 777 char dst[INET6_ADDRSTRLEN];
779 778
780 if (addr->sa_family == AF_INET6) { 779 if (addr->sa_family == AF_INET6) {
781 inet_ntop(addr->sa_family, &((struct sockaddr_in6 *) addr)->sin6_addr, 780 inet_ntop(addr->sa_family, &((struct sockaddr_in6 *) addr)->sin6_addr,

mercurial