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

Diff for /src/usr.bin/cvs/rcs.c between version 1.191 and 1.192

version 1.191, 2006/12/21 14:59:25 version 1.192, 2006/12/21 15:03:15
Line 1874 
Line 1874 
         struct rcs_delta *rdp;          struct rcs_delta *rdp;
         struct rcs_key *rk;          struct rcs_key *rk;
   
         rdp = xcalloc(1, sizeof(*rdp));  
   
         rdp->rd_num = rcsnum_alloc();  
         rdp->rd_next = rcsnum_alloc();  
   
         TAILQ_INIT(&(rdp->rd_branches));  
   
         tok = rcs_gettok(rfp);          tok = rcs_gettok(rfp);
         if (tok == RCS_TOK_DESC) {          if (tok == RCS_TOK_DESC) {
                 rcs_pushtok(rfp, RCS_TOKSTR(rfp), tok);                  rcs_pushtok(rfp, RCS_TOKSTR(rfp), tok);
Line 1889 
Line 1882 
                 rcs_errno = RCS_ERR_PARSE;                  rcs_errno = RCS_ERR_PARSE;
                 cvs_log(LP_ERR, "unexpected token `%s' at start of delta",                  cvs_log(LP_ERR, "unexpected token `%s' at start of delta",
                     RCS_TOKSTR(rfp));                      RCS_TOKSTR(rfp));
                 rcs_freedelta(rdp);  
                 return (-1);                  return (-1);
         }          }
   
           rdp = xcalloc(1, sizeof(*rdp));
   
           rdp->rd_num = rcsnum_alloc();
           rdp->rd_next = rcsnum_alloc();
   
           TAILQ_INIT(&(rdp->rd_branches));
   
         rcsnum_aton(RCS_TOKSTR(rfp), NULL, rdp->rd_num);          rcsnum_aton(RCS_TOKSTR(rfp), NULL, rdp->rd_num);
   
         hmask = 0;          hmask = 0;

Legend:
Removed from v.1.191  
changed lines
  Added in v.1.192