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

Diff for /src/usr.bin/ssh/ssh-keyscan.c between version 1.33 and 1.34

version 1.33, 2001/12/10 20:34:31 version 1.34, 2002/02/22 12:20:34
Line 636 
Line 636 
         }          }
 }  }
   
 static void  void
 fatal_callback(void *arg)  fatal(const char *fmt,...)
 {  {
           va_list args;
           va_start(args, fmt);
           do_log(SYSLOG_LEVEL_FATAL, fmt, args);
           va_end(args);
         if (nonfatal_fatal)          if (nonfatal_fatal)
                 longjmp(kexjmp, -1);                  longjmp(kexjmp, -1);
           else
                   fatal_cleanup();
 }  }
   
 static void  static void
Line 653 
Line 659 
         fprintf(stderr, "  -p port     Connect to the specified port.\n");          fprintf(stderr, "  -p port     Connect to the specified port.\n");
         fprintf(stderr, "  -t keytype  Specify the host key type.\n");          fprintf(stderr, "  -t keytype  Specify the host key type.\n");
         fprintf(stderr, "  -T timeout  Set connection timeout.\n");          fprintf(stderr, "  -T timeout  Set connection timeout.\n");
         fprintf(stderr, "  -v          Verbose; display verbose debugging messages.\n");          fprintf(stderr, "  -v          Verbose; display verbose debugging messages.\n");
         fprintf(stderr, "  -4          Use IPv4 only.\n");          fprintf(stderr, "  -4          Use IPv4 only.\n");
         fprintf(stderr, "  -6          Use IPv6 only.\n");          fprintf(stderr, "  -6          Use IPv6 only.\n");
         exit(1);          exit(1);
 }  }
   
Line 739 
Line 745 
                 usage();                  usage();
   
         log_init("ssh-keyscan", log_level, SYSLOG_FACILITY_USER, 1);          log_init("ssh-keyscan", log_level, SYSLOG_FACILITY_USER, 1);
         fatal_add_cleanup(fatal_callback, NULL);  
   
         maxfd = fdlim_get(1);          maxfd = fdlim_get(1);
         if (maxfd < 0)          if (maxfd < 0)

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