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

Diff for /src/usr.bin/rcs/co.c between version 1.112 and 1.113

version 1.112, 2010/07/28 09:07:11 version 1.113, 2010/07/30 21:47:18
Line 261 
Line 261 
         RCSNUM *rev;          RCSNUM *rev;
   
         rcsdate = givendate = -1;          rcsdate = givendate = -1;
         if (date != NULL)          if (date != NULL && (givendate = date_parse(date)) == -1) {
                 givendate = date_parse(date);                  warnx("invalid date: %s", date);
                   return -1;
           }
   
         if (file->rf_ndelta == 0 && !(flags & QUIET))          if (file->rf_ndelta == 0 && !(flags & QUIET))
                 (void)fprintf(stderr,                  (void)fprintf(stderr,
Line 303 
Line 305 
                 TAILQ_FOREACH(rdp, &file->rf_delta, rd_list) {                  TAILQ_FOREACH(rdp, &file->rf_delta, rd_list) {
                         if (date != NULL) {                          if (date != NULL) {
                                 fdate = asctime(&rdp->rd_date);                                  fdate = asctime(&rdp->rd_date);
                                 rcsdate = date_parse(fdate);                                  if ((rcsdate = date_parse(fdate)) == -1) {
                                           warnx("invalid date: %s", fdate);
                                           return -1;
                                   }
                                 if (givendate <= rcsdate)                                  if (givendate <= rcsdate)
                                         continue;                                          continue;
                         }                          }

Legend:
Removed from v.1.112  
changed lines
  Added in v.1.113