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

Diff for /src/usr.bin/cvs/update.c between version 1.167 and 1.168

version 1.167, 2012/07/02 21:56:25 version 1.168, 2013/12/13 15:19:41
Line 17 
Line 17 
   
 #include <sys/stat.h>  #include <sys/stat.h>
   
   #include <dirent.h>
 #include <errno.h>  #include <errno.h>
 #include <fcntl.h>  #include <fcntl.h>
 #include <string.h>  #include <string.h>
Line 235 
Line 236 
 void  void
 cvs_update_leavedir(struct cvs_file *cf)  cvs_update_leavedir(struct cvs_file *cf)
 {  {
         off_t base;  
         int nbytes;          int nbytes;
         int isempty;          int isempty;
         size_t bufsize;          size_t bufsize;
Line 272 
Line 272 
         if (lseek(cf->fd, 0, SEEK_SET) == -1)          if (lseek(cf->fd, 0, SEEK_SET) == -1)
                 fatal("cvs_update_leavedir: %s", strerror(errno));                  fatal("cvs_update_leavedir: %s", strerror(errno));
   
         while ((nbytes = getdirentries(cf->fd, buf, bufsize, &base)) > 0) {          while ((nbytes = getdents(cf->fd, buf, bufsize)) > 0) {
                 ebuf = buf + nbytes;                  ebuf = buf + nbytes;
                 cp = buf;                  cp = buf;
   

Legend:
Removed from v.1.167  
changed lines
  Added in v.1.168