[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.3 and 1.4

version 1.3, 1996/06/26 05:40:24 version 1.4, 1998/04/28 22:13:29
Line 41 
Line 41 
 static char rcsid[] = "$OpenBSD$";  static char rcsid[] = "$OpenBSD$";
 #endif /* not lint */  #endif /* not lint */
   
 #include <sys/types.h>  #include "talk.h"
 #include <sys/socket.h>  
 #include <netinet/in.h>  
 #include <protocols/talkd.h>  
 #include <errno.h>  #include <errno.h>
   #include <unistd.h>
 #include "talk_ctl.h"  #include "talk_ctl.h"
 #include "talk.h"  
   
 /*  /*
  * See if the local daemon has an invitation for us.   * See if the local daemon has an invitation for us.
  */   */
   int
 check_local()  check_local()
 {  {
         CTL_RESPONSE response;          CTL_RESPONSE response;
Line 99 
Line 97 
 /*  /*
  * Look for an invitation on 'machine'   * Look for an invitation on 'machine'
  */   */
   int
 look_for_invite(rp)  look_for_invite(rp)
         CTL_RESPONSE *rp;          CTL_RESPONSE *rp;
 {  {
         struct in_addr machine_addr;  
   
         current_state = "Checking for invitation on caller's machine";          current_state = "Checking for invitation on caller's machine";
         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 */

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4