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

Diff for /src/usr.bin/rcs/co.c between version 1.46 and 1.47

version 1.46, 2005/12/09 06:59:27 version 1.47, 2005/12/10 20:27:46
Line 94 
Line 94 
                         rcs_set_rev(rcs_optarg, &rev);                          rcs_set_rev(rcs_optarg, &rev);
                         break;                          break;
                 case 's':                  case 's':
                         if ((state = strdup(rcs_optarg)) == NULL) {                          state = xstrdup(rcs_optarg);
                                 cvs_log(LP_ERRNO, "out of memory");  
                                 exit(1);  
                         }  
                         flags |= CO_STATE;                          flags |= CO_STATE;
                         break;                          break;
                 case 'T':                  case 'T':
Line 118 
Line 115 
                                             "could not get login");                                              "could not get login");
                                         exit(1);                                          exit(1);
                                 }                                  }
                         } else if ((author = strdup(rcs_optarg)) == NULL) {                          } else
                                 cvs_log(LP_ERRNO, "out of memory");                                  author = xstrdup(rcs_optarg);
                                 exit(1);  
                         }  
   
                         flags |= CO_AUTHOR;                          flags |= CO_AUTHOR;
                         break;                          break;
                 case 'x':                  case 'x':
Line 350 
Line 344 
                 cvs_buf_putc(bp, '\0');                  cvs_buf_putc(bp, '\0');
                 content = cvs_buf_release(bp);                  content = cvs_buf_release(bp);
                 printf("%s", content);                  printf("%s", content);
                 free(content);                  xfree(content);
         } else {          } else {
                 if (cvs_buf_write(bp, dst, mode) < 0) {                  if (cvs_buf_write(bp, dst, mode) < 0) {
                         cvs_log(LP_ERR, "failed to write revision to file");                          cvs_log(LP_ERR, "failed to write revision to file");

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47