From b05861dc5f443a57a90585704197544d9670d6f9 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Sun, 30 Nov 2003 02:54:25 +0000 Subject: [PATCH] Removed annoying message about missing entry in /etc/services. --- dlls/winsock/socket.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/dlls/winsock/socket.c b/dlls/winsock/socket.c index 63087c027b..3d8c39829f 100644 --- a/dlls/winsock/socket.c +++ b/dlls/winsock/socket.c @@ -2581,12 +2581,7 @@ struct WS_servent* WINAPI WS_getservbyname(const char *name, const char *proto) { retval = WS_dup_se(serv); } - else { - MESSAGE("service %s protocol %s not found; You might want to add " - "this to /etc/services\n", debugstr_a(name_str), - proto_str ? debugstr_a(proto_str):"*"); - SetLastError(WSANO_DATA); - } + else SetLastError(WSANO_DATA); LeaveCriticalSection( &csWSgetXXXbyYYY ); if (proto_str) HeapFree( GetProcessHeap(), 0, proto_str ); HeapFree( GetProcessHeap(), 0, name_str ); @@ -2613,12 +2608,7 @@ struct WS_servent* WINAPI WS_getservbyport(int port, const char *proto) if( (serv = getservbyport(port, proto_str)) != NULL ) { retval = WS_dup_se(serv); } - else { - MESSAGE("service on port %lu protocol %s not found; You might want to add " - "this to /etc/services\n", (unsigned long)ntohl(port), - proto_str ? debugstr_a(proto_str) : "*"); - SetLastError(WSANO_DATA); - } + else SetLastError(WSANO_DATA); LeaveCriticalSection( &csWSgetXXXbyYYY ); if (proto_str) HeapFree( GetProcessHeap(), 0, proto_str ); #endif