

In libold.c:old_connect() we call perror() if some functions fail. That's ugly
and useless, so this patch removes those calls.



---

 cur-root/lib/libold.c |    4 ----
 1 files changed, 4 deletions(-)

diff -puN lib/libold.c~lib-remove_perror lib/libold.c
--- cur/lib/libold.c~lib-remove_perror	2004-04-27 21:26:46.000000000 -0300
+++ cur-root/lib/libold.c	2004-04-27 21:27:08.000000000 -0300
@@ -7,7 +7,6 @@
  */
 
 #include <stdlib.h>
-#include <stdio.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netdb.h>
@@ -172,7 +171,6 @@ int old_connect(char *host, int port) {
 
 	hinfo = gethostbyname(host);
 	if (hinfo == NULL) {
-		perror("Error resolving host");
 		return -1;
 	}
 	
@@ -184,14 +182,12 @@ int old_connect(char *host, int port) {
 
 	rv = 1;
 	if (setsockopt(fd, SOL_TCP, TCP_NODELAY, &rv, sizeof(rv)) < 0 ) {
-		perror("Error setting socket options");
 		return -1;
 	}
 			
 	
 	rv = connect(fd, (struct sockaddr *) &sa, sizeof(sa));
 	if (rv != 0) {
-		perror("Error binding");
 		return -1;
 	}
 

_
