[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.23 and 1.24

version 1.23, 2001/06/05 05:05:39 version 1.24, 2001/06/23 15:12:20
Line 82 
Line 82 
         void (*errfun) (const char *,...);          void (*errfun) (const char *,...);
 } Linebuf;  } Linebuf;
   
 Linebuf *  static Linebuf *
 Linebuf_alloc(const char *filename, void (*errfun) (const char *,...))  Linebuf_alloc(const char *filename, void (*errfun) (const char *,...))
 {  {
         Linebuf *lb;          Linebuf *lb;
Line 116 
Line 116 
         return (lb);          return (lb);
 }  }
   
 void  static void
 Linebuf_free(Linebuf * lb)  Linebuf_free(Linebuf * lb)
 {  {
         fclose(lb->stream);          fclose(lb->stream);
Line 124 
Line 124 
         xfree(lb);          xfree(lb);
 }  }
   
 void  #if 0
   static void
 Linebuf_restart(Linebuf * lb)  Linebuf_restart(Linebuf * lb)
 {  {
         clearerr(lb->stream);          clearerr(lb->stream);
Line 132 
Line 133 
         lb->lineno = 0;          lb->lineno = 0;
 }  }
   
 int  static int
 Linebuf_lineno(Linebuf * lb)  Linebuf_lineno(Linebuf * lb)
 {  {
         return (lb->lineno);          return (lb->lineno);
 }  }
   #endif
   
 char *  static char *
 Linebuf_getline(Linebuf * lb)  Linebuf_getline(Linebuf * lb)
 {  {
         int n = 0;          int n = 0;
Line 175 
Line 177 
         }          }
 }  }
   
 int  static int
 fdlim_get(int hard)  fdlim_get(int hard)
 {  {
         struct rlimit rlfd;          struct rlimit rlfd;
Line 188 
Line 190 
                 return hard ? rlfd.rlim_max : rlfd.rlim_cur;                  return hard ? rlfd.rlim_max : rlfd.rlim_cur;
 }  }
   
 int  static int
 fdlim_set(int lim)  fdlim_set(int lim)
 {  {
         struct rlimit rlfd;          struct rlimit rlfd;
Line 207 
Line 209 
  * separators.  This is the same as the 4.4BSD strsep, but different from the   * separators.  This is the same as the 4.4BSD strsep, but different from the
  * one in the GNU libc.   * one in the GNU libc.
  */   */
 char *  static char *
 xstrsep(char **str, const char *delim)  xstrsep(char **str, const char *delim)
 {  {
         char *s, *e;          char *s, *e;
Line 229 
Line 231 
  * Get the next non-null token (like GNU strsep).  Strsep() will return a   * Get the next non-null token (like GNU strsep).  Strsep() will return a
  * null token for two adjacent separators, so we may have to loop.   * null token for two adjacent separators, so we may have to loop.
  */   */
 char *  static char *
 strnnsep(char **stringp, char *delim)  strnnsep(char **stringp, char *delim)
 {  {
         char *tok;          char *tok;
Line 240 
Line 242 
         return (tok);          return (tok);
 }  }
   
 void  static void
 keyprint(char *host, char *output_name, char *kd, int len)  keyprint(char *host, char *output_name, char *kd, int len)
 {  {
         static Key *rsa;          static Key *rsa;
Line 275 
Line 277 
         fputs("\n", stdout);          fputs("\n", stdout);
 }  }
   
 int  static int
 tcpconnect(char *host)  tcpconnect(char *host)
 {  {
         struct addrinfo hints, *ai, *aitop;          struct addrinfo hints, *ai, *aitop;
Line 308 
Line 310 
         return s;          return s;
 }  }
   
 int  static int
 conalloc(char *iname, char *oname)  conalloc(char *iname, char *oname)
 {  {
         int s;          int s;
Line 346 
Line 348 
         return (s);          return (s);
 }  }
   
 void  static void
 confree(int s)  confree(int s)
 {  {
         if (s >= maxfd || fdcon[s].c_status == CS_UNUSED)          if (s >= maxfd || fdcon[s].c_status == CS_UNUSED)
Line 362 
Line 364 
         ncon--;          ncon--;
 }  }
   
 void  static void
 contouch(int s)  contouch(int s)
 {  {
         TAILQ_REMOVE(&tq, &fdcon[s], c_link);          TAILQ_REMOVE(&tq, &fdcon[s], c_link);
Line 371 
Line 373 
         TAILQ_INSERT_TAIL(&tq, &fdcon[s], c_link);          TAILQ_INSERT_TAIL(&tq, &fdcon[s], c_link);
 }  }
   
 int  static int
 conrecycle(int s)  conrecycle(int s)
 {  {
         int ret;          int ret;
Line 387 
Line 389 
         return (ret);          return (ret);
 }  }
   
 void  static void
 congreet(int s)  congreet(int s)
 {  {
         char buf[80], *cp;          char buf[80], *cp;
Line 422 
Line 424 
         contouch(s);          contouch(s);
 }  }
   
 void  static void
 conread(int s)  conread(int s)
 {  {
         int n;          int n;
Line 462 
Line 464 
         contouch(s);          contouch(s);
 }  }
   
 void  static void
 conloop(void)  conloop(void)
 {  {
         fd_set *r, *e;          fd_set *r, *e;
Line 514 
Line 516 
         }          }
 }  }
   
 char *  static char *
 nexthost(int argc, char **argv)  nexthost(int argc, char **argv)
 {  {
         static Linebuf *lb;          static Linebuf *lb;
Line 557 
Line 559 
         }          }
 }  }
   
 void  static void
 usage(void)  usage(void)
 {  {
         fatal("usage: %s [-t timeout] { [--] host | -f file } ...", __progname);          fatal("usage: %s [-t timeout] { [--] host | -f file } ...", __progname);

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24