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

Diff for /src/usr.bin/rcs/rcsutil.c between version 1.11 and 1.12

version 1.11, 2006/05/27 02:58:02 version 1.12, 2006/05/27 05:49:14
Line 267 
Line 267 
 }  }
   
 /*  /*
  * Find the name of an RCS file, given a file name `fname'.  If an RCS  
  * file is found, the name is copied to the `len' sized buffer `out'.  
  * Returns 0 if RCS file was found, -1 otherwise.  
  */  
 int  
 rcs_statfile(char *fname, char *out, size_t len, int flags)  
 {  
         int fd;  
   
         fd = rcs_choosefile(fname, out, len);  
         if (fd == -1 && !(flags & RCS_CREATE)) {  
                 if (strcmp(__progname, "rcsclean") != 0 &&  
                     strcmp(__progname, "ci") != 0)  
                         warnx("%s", out);  
                 return (-1);  
         }  
   
         return (fd);  
 }  
   
 /*  
  * Allocate an RCSNUM and store in <rev>.   * Allocate an RCSNUM and store in <rev>.
  */   */
 void  void

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12