[BACK]Return to invite.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / talk

Diff for /src/usr.bin/talk/invite.c between version 1.11 and 1.12

version 1.11, 2003/09/26 04:41:48 version 1.12, 2004/03/02 21:04:42
Line 34 
Line 34 
 #if 0  #if 0
 static char sccsid[] = "@(#)invite.c    8.1 (Berkeley) 6/6/93";  static char sccsid[] = "@(#)invite.c    8.1 (Berkeley) 6/6/93";
 #endif  #endif
 static char rcsid[] = "$OpenBSD$";  static const char rcsid[] = "$OpenBSD$";
 #endif /* not lint */  #endif /* not lint */
   
 #include "talk.h"  #include "talk.h"
Line 70 
Line 70 
         struct itimerval itimer;          struct itimerval itimer;
         CTL_RESPONSE response;          CTL_RESPONSE response;
         struct sockaddr rp;          struct sockaddr rp;
         int rplen = sizeof(struct sockaddr);          socklen_t rplen = sizeof(struct sockaddr);
         struct hostent *rphost;          struct hostent *rphost;
         char rname[STRING_LENGTH];          char rname[STRING_LENGTH];
   
Line 101 
Line 101 
         message("Waiting for your party to respond");          message("Waiting for your party to respond");
         signal(SIGALRM, re_invite);          signal(SIGALRM, re_invite);
         (void) setjmp(invitebuf);          (void) setjmp(invitebuf);
         while ((new_sockt = accept(sockt, &rp, &rplen)) < 0) {          while ((new_sockt = accept(sockt, &rp, &rplen)) == -1) {
                 if (errno == EINTR || errno == ECONNABORTED)                  if (errno == EINTR || errno == ECONNABORTED)
                         continue;                          continue;
                 quit("Unable to connect with your party", 1);                  quit("Unable to connect with your party", 1);

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12