aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-08-28 22:12:16 +0300
committerArnold D. Robbins <arnold@skeeve.com>2017-08-28 22:12:16 +0300
commite3d10b231e20e64c673556d3ed4eb96dbe8bbff3 (patch)
tree78efa4ed54bba9c56e8d0112f5eeb7903a9bb6da /io.c
parentebb3d8ff179f99fd2abf088743b1076fb8eaa20b (diff)
parent00af70530b9a79dbeee4d0e7a0fafdb9bee134d5 (diff)
downloadegawk-e3d10b231e20e64c673556d3ed4eb96dbe8bbff3.tar.gz
egawk-e3d10b231e20e64c673556d3ed4eb96dbe8bbff3.tar.bz2
egawk-e3d10b231e20e64c673556d3ed4eb96dbe8bbff3.zip
Merge branch 'master' into feature/fix-comments
Diffstat (limited to 'io.c')
-rw-r--r--io.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/io.c b/io.c
index 02278551..6330fcda 100644
--- a/io.c
+++ b/io.c
@@ -1586,7 +1586,12 @@ socketopen(int family, int type, const char *localpname,
lerror = getaddrinfo(NULL, localpname, & lhints, & lres);
if (lerror) {
if (strcmp(localpname, "0") != 0) {
+#ifdef HAVE_GAI_STRERROR
+ warning(_("local port %s invalid in `/inet': %s"), localpname,
+ gai_strerror(lerror));
+#else
warning(_("local port %s invalid in `/inet'"), localpname);
+#endif
*hard_error = true;
return INVALID_HANDLE;
}
@@ -1607,7 +1612,12 @@ socketopen(int family, int type, const char *localpname,
if (rerror) {
if (lres0 != NULL)
freeaddrinfo(lres0);
+#ifdef HAVE_GAI_STRERROR
+ warning(_("remote host and port information (%s, %s) invalid: %s"), remotehostname, remotepname,
+ gai_strerror(rerror));
+#else
warning(_("remote host and port information (%s, %s) invalid"), remotehostname, remotepname);
+#endif
*hard_error = true;
return INVALID_HANDLE;
}