diff options
author | xengineering <me@xengineering.eu> | 2023-01-08 20:00:53 +0100 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-01-08 20:00:53 +0100 |
commit | 5c22f7d803e3ec84ddad00e13ba617a9bc645d11 (patch) | |
tree | 28ad1d60e64e546e7e003900a36173312f03db06 | |
parent | f6a9602c875904f89dd19723b0c920b94b5a3b35 (diff) | |
download | limox-5c22f7d803e3ec84ddad00e13ba617a9bc645d11.tar limox-5c22f7d803e3ec84ddad00e13ba617a9bc645d11.tar.zst limox-5c22f7d803e3ec84ddad00e13ba617a9bc645d11.zip |
Rename to resolve_dns()
This explains better what this function is about.
-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) { |