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

Diff for /src/usr.bin/tip/Attic/cu.c between version 1.33 and 1.34

version 1.33, 2010/07/01 21:28:01 version 1.34, 2010/07/01 21:47:09
Line 152 
Line 152 
          * The "cu" host name is used to define the           * The "cu" host name is used to define the
          * attributes of the generic dialer.           * attributes of the generic dialer.
          */           */
         (void)snprintf(sbuf, sizeof(sbuf), "cu%ld", vgetnum(BAUDRATE));          (void)snprintf(sbuf, sizeof(sbuf), "cu%d", vgetnum(BAUDRATE));
         if ((i = hunt(sbuf)) == 0) {          if ((i = hunt(sbuf)) == 0) {
                 printf("all ports busy\n");                  printf("all ports busy\n");
                 exit(3);                  exit(3);
Line 178 
Line 178 
         }          }
         vsetnum(VERBOSE, 0);          vsetnum(VERBOSE, 0);
         if (ttysetup(vgetnum(BAUDRATE))) {          if (ttysetup(vgetnum(BAUDRATE))) {
                 fprintf(stderr, "%s: unsupported speed %ld\n",                  fprintf(stderr, "%s: unsupported speed %d\n",
                     __progname, vgetnum(BAUDRATE));                      __progname, vgetnum(BAUDRATE));
                 (void)uu_unlock(uucplock);                  (void)uu_unlock(uucplock);
                 exit(3);                  exit(3);

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34