aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Nehab <diego.nehab@gmail.com>2012-05-08 11:52:23 -0700
committerDiego Nehab <diego.nehab@gmail.com>2012-05-08 11:52:23 -0700
commit3d3e69c6e43f6431969e072e78df43b0ab73c48d (patch)
tree195790fac50ec2a977a945d83daa547e7ec16c31
parent1bb586d655ebb1d39ad29d45ec520f2ccfbf8e86 (diff)
parentac59bcbeac7b8b7be367e3a475010a36ab03057e (diff)
downloadluasocket-3d3e69c6e43f6431969e072e78df43b0ab73c48d.tar.gz
luasocket-3d3e69c6e43f6431969e072e78df43b0ab73c48d.tar.bz2
luasocket-3d3e69c6e43f6431969e072e78df43b0ab73c48d.zip
Merge pull request #8 from sam-github/fix-confusing-servname-reference
Reword error msg to distinguish between service and server
-rw-r--r--src/usocket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usocket.c b/src/usocket.c
index 80d4d70..a168bf6 100644
--- a/src/usocket.c
+++ b/src/usocket.c
@@ -439,12 +439,12 @@ const char *socket_gaistrerror(int err) {
439 case EAI_FAMILY: return "ai_family not supported"; 439 case EAI_FAMILY: return "ai_family not supported";
440 case EAI_MEMORY: return "memory allocation failure"; 440 case EAI_MEMORY: return "memory allocation failure";
441 case EAI_NONAME: 441 case EAI_NONAME:
442 return "hostname or servname not provided, or not known"; 442 return "host or service not provided, or not known";
443 case EAI_OVERFLOW: return "argument buffer overflow"; 443 case EAI_OVERFLOW: return "argument buffer overflow";
444#ifdef EAI_PROTOCOL 444#ifdef EAI_PROTOCOL
445 case EAI_PROTOCOL: return "resolved protocol is unknown"; 445 case EAI_PROTOCOL: return "resolved protocol is unknown";
446#endif 446#endif
447 case EAI_SERVICE: return "servname not supported for socktype"; 447 case EAI_SERVICE: return "service not supported for socket type";
448 case EAI_SOCKTYPE: return "ai_socktype not supported"; 448 case EAI_SOCKTYPE: return "ai_socktype not supported";
449 case EAI_SYSTEM: return strerror(errno); 449 case EAI_SYSTEM: return strerror(errno);
450 default: return "unknown error"; 450 default: return "unknown error";