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

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

version 1.11, 2009/10/27 23:59:44 version 1.12, 2010/08/12 23:31:29
Line 67 
Line 67 
                             sizeof (response.addr)) != -1)                              sizeof (response.addr)) != -1)
                         return (1);                          return (1);
         } while (errno == EINTR);          } while (errno == EINTR);
   
         if (errno == ECONNREFUSED) {          if (errno == ECONNREFUSED) {
                 /*                  /*
                  * The caller gave up, but his invitation somehow                   * The caller gave up, but his invitation somehow
Line 94 
Line 95 
         ctl_transact(his_machine_addr, msg, LOOK_UP, rp);          ctl_transact(his_machine_addr, msg, LOOK_UP, rp);
         /* the switch is for later options, such as multiple invitations */          /* the switch is for later options, such as multiple invitations */
         switch (rp->answer) {          switch (rp->answer) {
   
         case SUCCESS:          case SUCCESS:
                 msg.id_num = htonl(rp->id_num);                  msg.id_num = htonl(rp->id_num);
                 return (1);                  return (1);
   
         default:          default:
                 /* there wasn't an invitation waiting for us */                  /* there wasn't an invitation waiting for us */
                 return (0);                  return (0);

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