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

Diff for /src/usr.bin/talk/init_disp.c between version 1.7 and 1.8

version 1.7, 1998/12/20 23:54:08 version 1.8, 1999/03/03 20:43:30
Line 121 
Line 121 
             ? CWERASE : tty.c_cc[VWERASE];              ? CWERASE : tty.c_cc[VWERASE];
         cc = write(sockt, buf, sizeof(buf));          cc = write(sockt, buf, sizeof(buf));
         if (cc != sizeof(buf) )          if (cc != sizeof(buf) )
                 p_error("Lost the connection");                  quit("Lost the connection", 1);
         cc = read(sockt, buf, sizeof(buf));          cc = read(sockt, buf, sizeof(buf));
         if (cc != sizeof(buf) )          if (cc != sizeof(buf) )
                 p_error("Lost the connection");                  quit("Lost the connection", 1);
         his_win.cerase = buf[0];          his_win.cerase = buf[0];
         his_win.kill = buf[1];          his_win.kill = buf[1];
         his_win.werase = buf[2];          his_win.werase = buf[2];
Line 135 
Line 135 
         int dummy;          int dummy;
 {  {
   
         message("Connection closing. Exiting");          quit("Connection closing.  Exiting", 0);
         quit();  
 }  }
   
 /*  /*
  * All done talking...hang up the phone and reset terminal thingy's   * All done talking...hang up the phone and reset terminal thingy's
  */   */
 void  void
 quit()  quit(warning, do_perror)
           char *warning;
           int do_perror;
 {  {
   
         if (curses_initialized) {          if (curses_initialized) {
Line 154 
Line 155 
         }          }
         if (invitation_waiting)          if (invitation_waiting)
                 send_delete();                  send_delete();
           if (warning) {
                   if (do_perror)
                           warn(warning);
                   else
                           warnx(warning);
           }
         exit(0);          exit(0);
 }  }

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8