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

Diff for /src/usr.bin/tip/Attic/acu.c between version 1.12 and 1.13

version 1.12, 2006/03/17 14:43:06 version 1.13, 2006/10/18 21:18:59
Line 65 
Line 65 
 {  {
         char *cp = PN;          char *cp = PN;
         char *phnum, string[256];          char *phnum, string[256];
         FILE *fd;          FILE *fp;
         volatile int tried = 0;          volatile int tried = 0;
   
         if (!DU) {              /* regular connect message */          if (!DU) {              /* regular connect message */
Line 114 
Line 114 
                         tried++;                          tried++;
                 }                  }
         } else {          } else {
                 if ((fd = fopen(PH, "r")) == NOFILE) {                  if ((fp = fopen(PH, "r")) == NOFILE) {
                         printf("%s: ", PH);                          printf("%s: ", PH);
                         return ("can't open phone number file");                          return ("can't open phone number file");
                 }                  }
                 while (fgets(string, sizeof(string), fd) != NOSTR) {                  while (fgets(string, sizeof(string), fp) != NOSTR) {
                         cp = &string[strcspn(string, " \t\n")];                          cp = &string[strcspn(string, " \t\n")];
                         if (*cp != '\0')                          if (*cp != '\0')
                                 *cp++ = '\0';                                  *cp++ = '\0';
Line 140 
Line 140 
                         logent(value(HOST), phnum, acu->acu_name, "call failed");                          logent(value(HOST), phnum, acu->acu_name, "call failed");
                         tried++;                          tried++;
                 }                  }
                 fclose(fd);                  fclose(fp);
         }          }
         if (conflag) {          if (conflag) {
                 if (CM != NOSTR)                  if (CM != NOSTR)

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