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

Diff for /src/usr.bin/cvs/watch.c between version 1.9 and 1.10

version 1.9, 2005/12/30 02:03:28 version 1.10, 2005/12/31 13:27:51
Line 114 
Line 114 
                          * Only `watch add | remove' support the -a option.                           * Only `watch add | remove' support the -a option.
                          * Check which command has been issued.                           * Check which command has been issued.
                          */                           */
                         if (watchreq != CVS_REQ_WATCH_ADD &&                          if ((watchreq != CVS_REQ_WATCH_ADD) &&
                             watchreq != CVS_REQ_WATCH_REMOVE)                              (watchreq != CVS_REQ_WATCH_REMOVE))
                                 return (CVS_EX_USAGE);                                  return (CVS_EX_USAGE);
                         if (strcmp(optarg, "commit") != 0 &&                          if ((strcmp(optarg, "commit") != 0) &&
                             strcmp(optarg, "edit") != 0 &&                              (strcmp(optarg, "edit") != 0) &&
                             strcmp(optarg, "unedit") != 0 &&                              (strcmp(optarg, "unedit") != 0) &&
                             strcmp(optarg, "all") != 0 &&                              (strcmp(optarg, "all") != 0) &&
                             strcmp(optarg, "none") != 0)                              (strcmp(optarg, "none") != 0))
                                 return (CVS_EX_USAGE);                                  return (CVS_EX_USAGE);
                         aoptstr = xstrdup(optarg);                          aoptstr = xstrdup(optarg);
                         break;                          break;
Line 149 
Line 149 
 cvs_watch_pre_exec(struct cvsroot *root)  cvs_watch_pre_exec(struct cvsroot *root)
 {  {
         if (root->cr_method != CVS_METHOD_LOCAL) {          if (root->cr_method != CVS_METHOD_LOCAL) {
                 if (watchreq != CVS_REQ_WATCH_ADD &&                  if ((watchreq != CVS_REQ_WATCH_ADD) &&
                     watchreq != CVS_REQ_WATCH_REMOVE)                      (watchreq != CVS_REQ_WATCH_REMOVE))
                         return (CVS_EX_OK);                          return (CVS_EX_OK);
   
                 if (aoptstr == NULL || strcmp(aoptstr, "all") == 0) {                  if (aoptstr == NULL || strcmp(aoptstr, "all") == 0) {

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10