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

Diff for /src/usr.bin/cvs/checkout.c between version 1.148 and 1.149

version 1.148, 2008/06/10 20:30:17 version 1.149, 2008/06/11 02:19:13
Line 25 
Line 25 
 #include <libgen.h>  #include <libgen.h>
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
   #include <time.h>
 #include <unistd.h>  #include <unistd.h>
   
 #include "cvs.h"  #include "cvs.h"
Line 435 
Line 436 
         time_t rcstime;          time_t rcstime;
         CVSENTRIES *ent;          CVSENTRIES *ent;
         struct timeval tv[2];          struct timeval tv[2];
         struct tm *datetm;          struct tm datetm;
         char *tosend;          char *tosend;
         char template[MAXPATHLEN], *entry;          char template[MAXPATHLEN], *entry;
         char kbuf[8], sticky[CVS_REV_BUFSZ], rev[CVS_REV_BUFSZ];          char kbuf[8], sticky[CVS_REV_BUFSZ], rev[CVS_REV_BUFSZ];
Line 498 
Line 499 
                 time(&rcstime);                  time(&rcstime);
         }          }
   
         asctime_r(gmtime(&rcstime), tbuf);          gmtime_r(&rcstime, &datetm);
           asctime_r(&datetm, tbuf);
         tbuf[strcspn(tbuf, "\n")] = '\0';          tbuf[strcspn(tbuf, "\n")] = '\0';
   
         if (co_flags & CO_MERGE) {          if (co_flags & CO_MERGE) {
Line 512 
Line 514 
                 if (tag != NULL)                  if (tag != NULL)
                         (void)xsnprintf(sticky, sizeof(sticky), "T%s", tag);                          (void)xsnprintf(sticky, sizeof(sticky), "T%s", tag);
                 else if (cvs_specified_date != -1) {                  else if (cvs_specified_date != -1) {
                         datetm = gmtime(&cvs_specified_date);                          gmtime_r(&cvs_specified_date, &datetm);
                         (void)strftime(sticky, sizeof(sticky),                          (void)strftime(sticky, sizeof(sticky),
                             "D"CVS_DATE_FMT, datetm);                              "D"CVS_DATE_FMT, &datetm);
                 } else                  } else
                         (void)xsnprintf(sticky, sizeof(sticky), "T%s", rev);                          (void)xsnprintf(sticky, sizeof(sticky), "T%s", rev);
         else if (!reset_tag && cf->file_ent != NULL &&          else if (!reset_tag && cf->file_ent != NULL &&

Legend:
Removed from v.1.148  
changed lines
  Added in v.1.149