Date: Tue, 24 Sep 91 0:26:56 EDT From: John Curran To: wais@Think.COM Subject: SWAIS Source [2 of 2] patch for ../ir directory *** EOOH *** Date: Tue, 24 Sep 91 0:26:56 EDT From: John Curran To: wais@Think.COM Subject: SWAIS Source [2 of 2] patch for ../ir directory *** /tmp/,RCSt1a01871 Tue Sep 24 00:01:22 1991 --- cutil.h Mon Sep 23 23:52:56 1991 *************** *** 71,81 **** ((*(s1)==*(s2)) ? strncmp(s1,s2,n) : (*(s1) - *(s2))) /*----------------------------------------------------------------------*/ - /* convenience */ - - #define nl() printf("\n") - - /*----------------------------------------------------------------------*/ /* functions */ #ifdef __cplusplus --- 71,76 ---- *** /tmp/,RCSt1a01876 Tue Sep 24 00:01:22 1991 --- sockets.c Mon Sep 23 23:51:38 1991 *************** *** 270,276 **** *fd = socket (AF_INET, SOCK_STREAM, 0); rc = connect (*fd, &name, sizeof (name)); if(-1 == rc){ ! perror("Connect to socket did not work"); return FALSE; } return TRUE; --- 270,276 ---- *fd = socket (AF_INET, SOCK_STREAM, 0); rc = connect (*fd, &name, sizeof (name)); if(-1 == rc){ ! /* perror("Connect to socket did not work"); */ return FALSE; } return TRUE; *************** *** 285,296 **** FILE* file; long fd; if(fd_connect_to_server(host_name,port,&fd) == FALSE) { ! perror("Connect to socket did not work"); return NULL; } if ((file = fdopen(fd,"r+")) == NULL) { ! perror("Connect to socket did not work"); return NULL; } --- 285,296 ---- FILE* file; long fd; if(fd_connect_to_server(host_name,port,&fd) == FALSE) { ! /* perror("Connect to socket did not work"); */ return NULL; } if ((file = fdopen(fd,"r+")) == NULL) { ! /* perror("Connect to socket did not work"); */ return NULL; }