diff options
Diffstat (limited to 'xmpp.c')
-rw-r--r-- | xmpp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -71,7 +71,7 @@ char *get_domainpart(char *jid) * to RFC 6120!) * FIXME This function contains a memory leak! Free the linked list servinfo! */ -struct addrinfo *get_addrinfo(char *domain) +struct addrinfo *resolve_dns(char *domain) { struct addrinfo hints; struct addrinfo *servinfo; @@ -150,7 +150,7 @@ int xmpp_connect(void) char *domain = get_domainpart(jid); printf("Domainpart is '%s'.\n", domain); - struct addrinfo *addr = get_addrinfo(domain); + struct addrinfo *addr = resolve_dns(domain); int sock = socket(addr->ai_family, addr->ai_socktype, addr->ai_protocol); if (sock == -1) { |