aboutsummaryrefslogtreecommitdiff
path: root/src/hostcache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/hostcache.cc')
-rw-r--r--src/hostcache.cc6
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;
}