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

Diff for /src/usr.bin/tip/Attic/tip.c between version 1.25 and 1.26

version 1.25, 2006/03/16 19:32:46 version 1.26, 2006/03/17 14:43:06
Line 53 
Line 53 
 #include "pathnames.h"  #include "pathnames.h"
   
 int     disc = TTYDISC;         /* tip normally runs this way */  int     disc = TTYDISC;         /* tip normally runs this way */
 void    intprompt();  
 void    timeout();  
 void    cleanup(int);  
 char    PNbuf[256];                     /* This limits the size of a number */  char    PNbuf[256];                     /* This limits the size of a number */
   
   static void     intprompt(int);
   static void     tipin(void);
   static int      escape(void);
   
 int  int
 main(int argc, char *argv[])  main(int argc, char *argv[])
 {  {
Line 245 
Line 246 
 void  void
 cleanup(int signo)  cleanup(int signo)
 {  {
   
         daemon_uid();          daemon_uid();
         (void)uu_unlock(uucplock);          (void)uu_unlock(uucplock);
         if (odisc)          if (odisc)
Line 347 
Line 347 
 /*  /*
  * Interrupt service routine during prompting   * Interrupt service routine during prompting
  */   */
 void  static void
 intprompt(void)  intprompt(int signo)
 {  {
   
         (void)signal(SIGINT, SIG_IGN);          (void)signal(SIGINT, SIG_IGN);
         stoprompt = 1;          stoprompt = 1;
         printf("\r\n");          printf("\r\n");
Line 360 
Line 359 
 /*  /*
  * ****TIPIN   TIPIN****   * ****TIPIN   TIPIN****
  */   */
 void  static void
 tipin(void)  tipin(void)
 {  {
         char bol = 1;          char bol = 1;
Line 415 
Line 414 
  * Escape handler --   * Escape handler --
  *  called on recognition of ``escapec'' at the beginning of a line   *  called on recognition of ``escapec'' at the beginning of a line
  */   */
 int  static int
 escape(void)  escape(void)
 {  {
         int gch;          int gch;
Line 503 
Line 502 
  * Help command   * Help command
  */   */
 void  void
 help(char c)  help(int c)
 {  {
         esctable_t *p;          esctable_t *p;
   

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26