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

Diff for /src/usr.bin/rcs/ci.c between version 1.61 and 1.62

version 1.61, 2005/11/17 00:16:35 version 1.62, 2005/11/17 00:22:30
Line 72 
Line 72 
 static char * checkin_getlogmsg(RCSNUM *, RCSNUM *);  static char * checkin_getlogmsg(RCSNUM *, RCSNUM *);
 static void   checkin_init(struct checkin_params *);  static void   checkin_init(struct checkin_params *);
 static void   checkin_revert(struct checkin_params *pb);  static void   checkin_revert(struct checkin_params *pb);
 static int    checkin_setrevdate(struct checkin_params *pb);  static int    checkin_mtimedate(struct checkin_params *pb);
   
 void  void
 checkin_usage(void)  checkin_usage(void)
Line 327 
Line 327 
                  * time of the working file if -d has no argument.                   * time of the working file if -d has no argument.
                  */                   */
                 if (pb.date == DATE_MTIME                  if (pb.date == DATE_MTIME
                     && (checkin_setrevdate(&pb) < 0))                      && (checkin_mtimedate(&pb) < 0))
                             continue;                              continue;
   
   
Line 673 
Line 673 
 }  }
   
 /*  /*
  * checkin_setrevdate()   * checkin_mtimedate()
  *   *
  * Set the date of the revision to be the last modification   * Set the date of the revision to be the last modification
  * time of the working file if -d has no argument.   * time of the working file.
  *   *
  * On success, return 0. On error return -1.   * On success, return 0. On error return -1.
  */   */
 static int  static int
 checkin_setrevdate(struct checkin_params *pb)  checkin_mtimedate(struct checkin_params *pb)
 {  {
         struct stat sb;          struct stat sb;
         if (stat(pb->filename, &sb) != 0) {          if (stat(pb->filename, &sb) != 0) {

Legend:
Removed from v.1.61  
changed lines
  Added in v.1.62