[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.16 and 1.17

version 1.16, 2004/11/07 09:48:08 version 1.17, 2006/03/16 19:32:46
Line 46 
Line 46 
  * Botch the interface to look like cu's   * Botch the interface to look like cu's
  */   */
 void  void
 cumain(argc, argv)  cumain(int argc, char *argv[])
         int argc;  
         char *argv[];  
 {  {
         int ch, i, parity;          int ch, i, parity;
         long l;          long l;
Line 61 
Line 59 
         BR = DEFBR;          BR = DEFBR;
         parity = 0;     /* none */          parity = 0;     /* none */
         while ((ch = getopt(argc, argv, "a:l:s:htoe0123456789")) != -1) {          while ((ch = getopt(argc, argv, "a:l:s:htoe0123456789")) != -1) {
                 switch(ch) {                  switch (ch) {
                 case 'a':                  case 'a':
                         CU = optarg;                          CU = optarg;
                         break;                          break;
Line 174 
Line 172 
                 (void)uu_unlock(uucplock);                  (void)uu_unlock(uucplock);
                 exit(3);                  exit(3);
         }          }
         if (connect()) {          if (con()) {
                 printf("Connect failed\n");                  printf("Connect failed\n");
                 daemon_uid();                  daemon_uid();
                 (void)uu_unlock(uucplock);                  (void)uu_unlock(uucplock);
Line 190 
Line 188 
 }  }
   
 void  void
 cuusage()  cuusage(void)
 {  {
         fprintf(stderr, "usage: cu [-ehot] [-a acu] [-l line] [-s speed] [-#] "          fprintf(stderr, "usage: cu [-ehot] [-a acu] [-l line] [-s speed] [-#] "
             "[phone-number]\n");              "[phone-number]\n");

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17