From 5c22f7d803e3ec84ddad00e13ba617a9bc645d11 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 8 Jan 2023 20:00:53 +0100 Subject: Rename to resolve_dns() This explains better what this function is about. --- xmpp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmpp.c b/xmpp.c index fbff363..b220e53 100644 --- a/xmpp.c +++ b/xmpp.c @@ -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) { -- cgit v1.2.3-70-g09d2