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

Diff for /src/usr.bin/cvs/tag.c between version 1.67 and 1.68

version 1.67, 2008/02/09 13:03:29 version 1.68, 2008/03/01 20:03:56
Line 281 
Line 281 
 static int  static int
 tag_add(struct cvs_file *cf)  tag_add(struct cvs_file *cf)
 {  {
           int ret;
         char revbuf[CVS_REV_BUFSZ], trevbuf[CVS_REV_BUFSZ];          char revbuf[CVS_REV_BUFSZ], trevbuf[CVS_REV_BUFSZ];
         RCSNUM *srev, *trev;          RCSNUM *srev, *trev;
         struct rcs_sym *sym;          struct rcs_sym *sym;
Line 349 
Line 350 
                 rcsnum_cpy(srev, trev, 0);                  rcsnum_cpy(srev, trev, 0);
         }          }
   
         if (rcs_sym_add(cf->file_rcs, tag_name, trev) == -1) {          if ((ret = rcs_sym_add(cf->file_rcs, tag_name, trev)) != 0) {
                 if (rcs_errno != RCS_ERR_DUPENT) {                  if (ret != 1) {
                         cvs_log(LP_NOTICE,                          cvs_log(LP_NOTICE,
                             "failed to set tag %s to revision %s in %s",                              "failed to set tag %s to revision %s in %s",
                             tag_name, revbuf, cf->file_rcs->rf_path);                              tag_name, revbuf, cf->file_rcs->rf_path);

Legend:
Removed from v.1.67  
changed lines
  Added in v.1.68