[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.98 and 1.99

version 1.98, 2005/07/18 01:02:20 version 1.99, 2005/07/22 16:27:29
Line 550 
Line 550 
                 }                  }
   
                 SIMPLEQ_FOREACH(sf, &(cf->cf_files), cf_list)                  SIMPLEQ_FOREACH(sf, &(cf->cf_files), cf_list)
                         if (cvs_file_cmpname(pp, CVS_FILE_NAME(sf)) == 0)                          if (cvs_file_cmpname(pp, sf->cf_name) == 0)
                                 break;                                  break;
                 if (sf == NULL)                  if (sf == NULL)
                         return (NULL);                          return (NULL);
Line 584 
Line 584 
   
         /* find the top node */          /* find the top node */
         for (top = file; (top != NULL) && (i > 0); top = top->cf_parent) {          for (top = file; (top != NULL) && (i > 0); top = top->cf_parent) {
                 fp = CVS_FILE_NAME(top);                  fp = top->cf_name;
   
                 /* skip self-references */                  /* skip self-references */
                 if ((fp[0] == '.') && (fp[1] == '\0'))                  if ((fp[0] == '.') && (fp[1] == '\0'))
Line 886 
Line 886 
                         cfp->cf_flags &= ~CVS_GDIR_IGNORE;                          cfp->cf_flags &= ~CVS_GDIR_IGNORE;
   
                 if (cvs_file_getdir(cfp, flags, np, cb, arg) < 0) {                  if (cvs_file_getdir(cfp, flags, np, cb, arg) < 0) {
                         cvs_log(LP_ERR, "failed to get %s", CVS_FILE_NAME(cfp));                          cvs_log(LP_ERR, "failed to get %s", cfp->cf_name);
                         continue;                          continue;
                 }                  }
         }          }
Line 1020 
Line 1020 
         const CVSFILE *cf1, *cf2;          const CVSFILE *cf1, *cf2;
         cf1 = *(CVSFILE * const *)f1;          cf1 = *(CVSFILE * const *)f1;
         cf2 = *(CVSFILE * const *)f2;          cf2 = *(CVSFILE * const *)f2;
         return cvs_file_cmpname(CVS_FILE_NAME(cf1), CVS_FILE_NAME(cf2));          return cvs_file_cmpname(cf1->cf_name, cf2->cf_name);
 }  }
   
   

Legend:
Removed from v.1.98  
changed lines
  Added in v.1.99