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

Diff for /src/usr.bin/rcs/ci.c between version 1.41 and 1.42

version 1.41, 2005/10/17 15:33:12 version 1.42, 2005/10/17 22:04:54
Line 126 
Line 126 
                         interactive = 0;                          interactive = 0;
                         cvs_printf("rcs_msg: %s\n", rcs_msg);                          cvs_printf("rcs_msg: %s\n", rcs_msg);
                         break;                          break;
                   case 'N':
                           if ((symbol = strdup(rcs_optarg)) == NULL) {
                                   cvs_log(LP_ERRNO, "out of memory");
                                   exit(1);
                           }
                           if (rcs_sym_check(symbol) != 1) {
                                   cvs_log(LP_ERR, "invalid symbol `%s'", symbol);
                                   exit(1);
                           }
                           break;
                 case 'n':                  case 'n':
                         if ((symbol = strdup(rcs_optarg)) == NULL) {                          if ((symbol = strdup(rcs_optarg)) == NULL) {
                                 cvs_log(LP_ERRNO, "out of memory");                                  cvs_log(LP_ERRNO, "out of memory");
Line 346 
Line 356 
                         if ((ret = rcs_sym_add(file, symbol, newrev) == -1)                          if ((ret = rcs_sym_add(file, symbol, newrev) == -1)
                             && (rcs_errno == RCS_ERR_DUPENT)) {                              && (rcs_errno == RCS_ERR_DUPENT)) {
                                 char tmp[16];                                  char tmp[16];
                                 rcsnum_tostr(rcs_sym_getrev(file, symbol), tmp, sizeof(tmp));                                  rcsnum_tostr(rcs_sym_getrev(file, symbol),
                                 cvs_log(LP_ERR, "symbolic name %s already bound to %s",                                      tmp, sizeof(tmp));
                                   cvs_log(LP_ERR,
                                       "symbolic name %s already bound to %s",
                                     symbol, tmp);                                      symbol, tmp);
                                 status = 1;                                  status = 1;
                                 rcs_close(file);                                  rcs_close(file);
                                 continue;                                  continue;
                         } else if (ret == -1) {                          } else if (ret == -1) {
                                 cvs_printf("problem adding symbol: %s\n", symbol);                                  cvs_printf("problem adding symbol: %s\n",
                                       symbol);
                                 status = 1;                                  status = 1;
                                 rcs_close(file);                                  rcs_close(file);
                                 continue;                                  continue;

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.42