From ac59bcbeac7b8b7be367e3a475010a36ab03057e Mon Sep 17 00:00:00 2001
From: Sam Roberts <vieuxtech@gmail.com>
Date: Tue, 8 May 2012 10:55:33 -0700
Subject: [PATCH] Reword error msg to distinguish between service and server

servname is easily confused with "server name", making it seem
as if the server name couldn't be resolved.
---
 src/usocket.c | 4 ++--
 1 file 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) {
         case EAI_FAMILY: return "ai_family not supported";
         case EAI_MEMORY: return "memory allocation failure";
         case EAI_NONAME: 
-            return "hostname or servname not provided, or not known";
+            return "host or service not provided, or not known";
         case EAI_OVERFLOW: return "argument buffer overflow";
 #ifdef EAI_PROTOCOL
         case EAI_PROTOCOL: return "resolved protocol is unknown";
 #endif
-        case EAI_SERVICE: return "servname not supported for socktype";
+        case EAI_SERVICE: return "service not supported for socket type";
         case EAI_SOCKTYPE: return "ai_socktype not supported";
         case EAI_SYSTEM: return strerror(errno); 
         default: return "unknown error";