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

Diff for /src/usr.bin/cvs/file.c between version 1.1 and 1.2

version 1.1, 2004/07/14 03:33:09 version 1.2, 2004/07/16 03:08:26
Line 207 
Line 207 
  * matching any of the ignore patterns.  The number of files found is   * matching any of the ignore patterns.  The number of files found is
  * returned in <nfiles>.   * returned in <nfiles>.
  * Returns a pointer to a dynamically-allocated string vector on success,   * Returns a pointer to a dynamically-allocated string vector on success,
  * or NULL on failure.   * or NULL on failure.  The returned vector should be freed with
    * cvs_freeargv().
  */   */
   
 char**  char**
Line 258 
Line 259 
         (void)close(fd);          (void)close(fd);
   
         return (fvec);          return (fvec);
 }  
   
   
 /*  
  * cvs_file_freev()  
  *  
  * Free a file vector obtained with cvs_file_getv().  
  */  
   
 void  
 cvs_file_freev(char **fvec, int nfiles)  
 {  
         int i;  
   
         for (i = 0; i < nfiles; i++)  
                 free(fvec[i]);  
         free(fvec);  
 }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2