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

Diff for /src/usr.bin/rcs/rcsclean.c between version 1.16 and 1.17

version 1.16, 2005/11/23 09:39:20 version 1.17, 2005/11/25 14:16:44
Line 42 
Line 42 
 static int nflag = 0;  static int nflag = 0;
 static int kflag = RCS_KWEXP_ERR;  static int kflag = RCS_KWEXP_ERR;
 static int uflag = 0;  static int uflag = 0;
   static int flags = 0;
   
 int  int
 rcsclean_main(int argc, char **argv)  rcsclean_main(int argc, char **argv)
 {  {
         int i, ch, flags;          int i, ch;
         RCSNUM *rev;          RCSNUM *rev;
         DIR *dirp;          DIR *dirp;
         struct dirent *dp;          struct dirent *dp;
   
         flags = 0;  
         rev = RCS_HEAD_REV;          rev = RCS_HEAD_REV;
   
         while ((ch = rcs_getopt(argc, argv, "k:n::q::r:Tu::Vx:")) != -1) {          while ((ch = rcs_getopt(argc, argv, "k:n::q::r:Tu::Vx:")) != -1) {
Line 137 
Line 137 
         BUF *b1, *b2;          BUF *b1, *b2;
         char *s1, *s2, *c1, *c2;          char *s1, *s2, *c1, *c2;
         struct stat st;          struct stat st;
           time_t rcs_mtime = -1;
   
         match = 1;          match = 1;
   
Line 149 
Line 150 
         if ((file = rcs_open(fpath, RCS_RDWR)) == NULL)          if ((file = rcs_open(fpath, RCS_RDWR)) == NULL)
                 return (-1);                  return (-1);
   
           if (flags & PRESERVETIME)
                   rcs_mtime = rcs_get_mtime(file->rf_path);
   
         if (!RCS_KWEXP_INVAL(kflag))          if (!RCS_KWEXP_INVAL(kflag))
                 rcs_kwexp_set(file, kflag);                  rcs_kwexp_set(file, kflag);
   
Line 205 
Line 209 
         }          }
   
         rcs_close(file);          rcs_close(file);
   
           if (flags & PRESERVETIME)
                   rcs_set_mtime(fpath, rcs_mtime);
   
         return (0);          return (0);
 }  }

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17