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

Diff for /src/usr.bin/ssh/misc.c between version 1.160 and 1.161

version 1.160, 2021/01/15 02:58:11 version 1.161, 2021/02/15 20:36:35
Line 2340 
Line 2340 
         return 0;          return 0;
 }  }
   
   void
   opt_array_append2(const char *file, const int line, const char *directive,
       char ***array, int **iarray, u_int *lp, const char *s, int i)
   {
   
           if (*lp >= INT_MAX)
                   fatal("%s line %d: Too many %s entries", file, line, directive);
   
           if (iarray != NULL) {
                   *iarray = xrecallocarray(*iarray, *lp, *lp + 1,
                       sizeof(**iarray));
                   (*iarray)[*lp] = i;
           }
   
           *array = xrecallocarray(*array, *lp, *lp + 1, sizeof(**array));
           (*array)[*lp] = xstrdup(s);
           (*lp)++;
   }
   
   void
   opt_array_append(const char *file, const int line, const char *directive,
       char ***array, u_int *lp, const char *s)
   {
           opt_array_append2(file, line, directive, array, NULL, lp, s, 0);
   }
   
 sshsig_t  sshsig_t
 ssh_signal(int signum, sshsig_t handler)  ssh_signal(int signum, sshsig_t handler)
 {  {

Legend:
Removed from v.1.160  
changed lines
  Added in v.1.161