[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.43 and 1.44

version 1.43, 2010/06/29 23:10:56 version 1.44, 2010/06/29 23:32:52
Line 99 
Line 99 
                 }                  }
         }          }
   
         if (sys == NULL)  
                 goto notnumber;  
         if (isalpha(*sys))  
                 goto notnumber;  
         /*  
          * System name is really a phone number...  
          * Copy the number then stomp on the original (in case the number  
          *      is private, we don't want 'ps' or 'w' to find it).  
          */  
         if (strlen(sys) > sizeof PNbuf - 1) {  
                 fprintf(stderr, "%s: phone number too long (max = %d bytes)\n",  
                         __progname, (int)sizeof(PNbuf) - 1);  
                 exit(1);  
         }  
         strlcpy(PNbuf, sys, sizeof PNbuf - 1);  
         for (p = sys; *p; p++)  
                 *p = '\0';  
         PN = PNbuf;  
         (void)snprintf(sbuf, sizeof(sbuf), "tip%ld", number(value(BAUDRATE)));  
         sys = sbuf;  
   
 notnumber:  
         (void)signal(SIGINT, cleanup);          (void)signal(SIGINT, cleanup);
         (void)signal(SIGQUIT, cleanup);          (void)signal(SIGQUIT, cleanup);
         (void)signal(SIGHUP, cleanup);          (void)signal(SIGHUP, cleanup);

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44