summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsorg71 <jay.sorg@gmail.com>2016-11-09 15:26:28 -0800
committerGitHub <noreply@github.com>2016-11-09 15:26:28 -0800
commit46e1173bd955ed47e88674e6144c604bf00fecbb (patch)
treef97b34f57bbaace74611bd4941e2100aba6749f0
parentd7fd1539512f8d435fbeef3eac4e11ac7b44fd43 (diff)
parent2dcc69b752222c822fa67deb4f5f11a7ef47798d (diff)
downloadxrdp-proprietary-46e1173bd955ed47e88674e6144c604bf00fecbb.tar.gz
xrdp-proprietary-46e1173bd955ed47e88674e6144c604bf00fecbb.zip
Merge pull request #479 from proski/strerror
Use g_get_strerror() instead of strerror(errno) for portability
-rw-r--r--common/os_calls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/os_calls.c b/common/os_calls.c
index 0ba4fd98..b418e760 100644
--- a/common/os_calls.c
+++ b/common/os_calls.c
@@ -687,7 +687,7 @@ g_sck_close(int sck)
else
{
log_message(LOG_LEVEL_WARNING, "getsockname() failed on socket %d: %s",
- sck, strerror(errno));
+ sck, g_get_strerror());
if (errno == EBADF || errno == ENOTSOCK)
{
@@ -704,7 +704,7 @@ g_sck_close(int sck)
else
{
log_message(LOG_LEVEL_WARNING, "Cannot close socket %d (%s): %s", sck,
- sockname, strerror(errno));
+ sockname, g_get_strerror());
}
#endif