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

Diff for /src/usr.bin/cvs/Attic/hist.c between version 1.8 and 1.9

version 1.8, 2005/07/29 17:04:42 version 1.9, 2005/08/02 20:05:42
Line 79 
Line 79 
         if (histp->chf_fd == -1) {          if (histp->chf_fd == -1) {
                 cvs_log(LP_ERRNO,                  cvs_log(LP_ERRNO,
                     "failed to open CVS history file `%s'", path);                      "failed to open CVS history file `%s'", path);
                   cvs_nolog = 1;
                 free(histp->chf_buf);                  free(histp->chf_buf);
                 free(histp);                  free(histp);
                 return (NULL);                  return (NULL);
Line 137 
Line 138 
 cvs_hist_append(CVSHIST *histp, struct cvs_hent *hentp)  cvs_hist_append(CVSHIST *histp, struct cvs_hent *hentp)
 {  {
         char hbuf[128];          char hbuf[128];
   
           if (cvs_nolog == 1)
                   return (0);
   
         if (cvs_hist_fmt(hentp, hbuf, sizeof(hbuf)) < 0) {          if (cvs_hist_fmt(hentp, hbuf, sizeof(hbuf)) < 0) {
                 cvs_log(LP_ERR, "failed to append CVS history entry");                  cvs_log(LP_ERR, "failed to append CVS history entry");

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9