summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-01-08 20:00:53 +0100
committerxengineering <me@xengineering.eu>2023-01-08 20:00:53 +0100
commit5c22f7d803e3ec84ddad00e13ba617a9bc645d11 (patch)
tree28ad1d60e64e546e7e003900a36173312f03db06
parentf6a9602c875904f89dd19723b0c920b94b5a3b35 (diff)
downloadlimox-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.c4
1 files 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) {