diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-10-14 19:15:28 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-10-14 19:15:28 -0300 |
| commit | 00d91512b48c70c3cebcdb5ed37c601653425bf6 (patch) | |
| tree | d709f7473e015c5f8274e0bbaddea95706787019 /src/hostcache.cc | |
| parent | e1c2920ca25d5f69a8fd82eb26304fc0cbcc8684 (diff) | |
| download | querymanager-00d91512b48c70c3cebcdb5ed37c601653425bf6.tar.gz querymanager-00d91512b48c70c3cebcdb5ed37c601653425bf6.zip | |
GET_WORLD_CONFIG robustness + tidying up a few variable names
Diffstat (limited to 'src/hostcache.cc')
| -rw-r--r-- | src/hostcache.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |
