From 00d91512b48c70c3cebcdb5ed37c601653425bf6 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Tue, 14 Oct 2025 19:15:28 -0300 Subject: GET_WORLD_CONFIG robustness + tidying up a few variable names --- src/hostcache.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/hostcache.cc') diff --git a/src/hostcache.cc b/src/hostcache.cc index ef84def..f32b0f7 100644 --- a/src/hostcache.cc +++ b/src/hostcache.cc @@ -36,9 +36,9 @@ static bool DoResolveHostName(const char *HostName, int *OutAddr){ addrinfo Hints = {}; Hints.ai_family = AF_INET; Hints.ai_socktype = SOCK_STREAM; - int ErrCode = getaddrinfo(HostName, NULL, &Hints, &Result); - if(ErrCode != 0){ - LOG_ERR("Failed to resolve hostname \"%s\": %s", HostName, gai_strerror(ErrCode)); + int ErrorCode = getaddrinfo(HostName, NULL, &Hints, &Result); + if(ErrorCode != 0){ + LOG_ERR("Failed to resolve hostname \"%s\": %s", HostName, gai_strerror(ErrorCode)); return false; } -- cgit v1.2.3