summaryrefslogtreecommitdiff
path: root/src/ivysocket.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ivysocket.c')
-rw-r--r--src/ivysocket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ivysocket.c b/src/ivysocket.c
index 3f94048..cf39275 100644
--- a/src/ivysocket.c
+++ b/src/ivysocket.c
@@ -432,7 +432,7 @@ char *SocketGetPeerHost (Client client )
}
}
#else
- fprintf(stderr, "SocketGetPeerHost :: getnameinfo %s\n", hstrerror( h_errno) );
+ fprintf(stderr, "SocketGetPeerHost :: getnameinfo %s\n", hstrerror( err ) );
#endif
return "can't translate addr";
}
@@ -504,7 +504,7 @@ void SocketGetRemoteHost (Client client, char **hostptr, unsigned short *port )
}
}
#else
- fprintf(stderr, "SocketGetRemoteHost :: getnameinfo %s\n", hstrerror( h_errno) );
+ fprintf(stderr, "SocketGetRemoteHost :: getnameinfo %s\n", hstrerror( err ) );
#endif
*hostptr = "unknown";
}