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

Diff for /src/usr.bin/cvs/update.c between version 1.31 and 1.32

version 1.31, 2005/05/26 03:07:20 version 1.32, 2005/05/29 16:36:54
Line 64 
Line 64 
         CVS_CMD_ALLOWSPEC | CVS_CMD_SENDARGS2 | CVS_CMD_SENDDIR          CVS_CMD_ALLOWSPEC | CVS_CMD_SENDARGS2 | CVS_CMD_SENDDIR
 };  };
   
   static char *date, *rev;
 static int dflag, Aflag;  static int dflag, Aflag;
   
 static int  static int
Line 72 
Line 73 
         int ch;          int ch;
   
         dflag = Aflag = 0;          dflag = Aflag = 0;
           date = NULL;
           rev = NULL;
   
         while ((ch = getopt(argc, argv, cmd->cmd_opts)) != -1) {          while ((ch = getopt(argc, argv, cmd->cmd_opts)) != -1) {
                 switch (ch) {                  switch (ch) {
Line 80 
Line 83 
                         break;                          break;
                 case 'C':                  case 'C':
                 case 'D':                  case 'D':
                           date = optarg;
                           break;
                 case 'd':                  case 'd':
                         dflag = 1;                          dflag = 1;
                         break;                          break;
Line 101 
Line 106 
                         cmd->file_flags |= CF_RECURSE;                          cmd->file_flags |= CF_RECURSE;
                         break;                          break;
                 case 'r':                  case 'r':
                           rev = optarg;
                         break;                          break;
                 default:                  default:
                         return (CVS_EX_USAGE);                          return (CVS_EX_USAGE);
                 }                  }
           }
   
           if ((date != NULL) && (rev != NULL)) {
                   cvs_log(LP_ERR,
                       "the -D and -r arguments are mutually exclusive");
                   return (CVS_EX_USAGE);
         }          }
   
         *arg = optind;          *arg = optind;

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32