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

Diff for /src/usr.bin/cvs/status.c between version 1.23 and 1.24

version 1.23, 2005/05/31 08:58:48 version 1.24, 2005/06/25 13:53:37
Line 174 
Line 174 
 cvs_status_local(CVSFILE *cf, void *arg)  cvs_status_local(CVSFILE *cf, void *arg)
 {  {
         int len;          int len;
         size_t sz;  
         char *repo, buf[MAXNAMLEN], fpath[MAXPATHLEN], rcspath[MAXPATHLEN];          char *repo, buf[MAXNAMLEN], fpath[MAXPATHLEN], rcspath[MAXPATHLEN];
         char datebuf[26];  
         RCSFILE *rf;          RCSFILE *rf;
         struct cvsroot *root;          struct cvsroot *root;
   
Line 216 
Line 214 
         if (cf->cf_cvstat == CVS_FST_UNKNOWN) {          if (cf->cf_cvstat == CVS_FST_UNKNOWN) {
                 snprintf(buf, sizeof(buf), "No entry for %s", cf->cf_name);                  snprintf(buf, sizeof(buf), "No entry for %s", cf->cf_name);
         } else {          } else {
                 ctime_r(&(cf->cf_mtime), datebuf);                  snprintf(buf, sizeof(buf), "%s",
                 sz = strlen(datebuf);                      rcsnum_tostr(cf->cf_lrev, buf, sizeof(buf)));
                 if ((sz > 0) && (datebuf[sz - 1] == '\n'))  
                         datebuf[--sz] = '\0';  
                 snprintf(buf, sizeof(buf), "%s %s",  
                     rcsnum_tostr(cf->cf_lrev, buf, sizeof(buf)), datebuf);  
         }          }
   
         cvs_printf("   Working revision:    %s\n", buf);          cvs_printf("   Working revision:    %s\n", buf);

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24