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

Diff for /src/usr.bin/rcs/rcs.c between version 1.68 and 1.69

version 1.68, 2010/10/15 08:44:12 version 1.69, 2010/10/20 19:53:53
Line 185 
Line 185 
         rfp->rf_path = xstrdup(path);          rfp->rf_path = xstrdup(path);
         rfp->rf_flags = flags | RCS_SLOCK | RCS_SYNCED;          rfp->rf_flags = flags | RCS_SLOCK | RCS_SYNCED;
         rfp->rf_mode = fmode;          rfp->rf_mode = fmode;
         rfp->rf_fd = fd;          if (fd == -1)
                   rfp->rf_file = NULL;
           else if ((rfp->rf_file = fdopen(fd, "r")) == NULL)
                   err(1, "rcs_open: fdopen: `%s'", path);
   
         TAILQ_INIT(&(rfp->rf_delta));          TAILQ_INIT(&(rfp->rf_delta));
         TAILQ_INIT(&(rfp->rf_access));          TAILQ_INIT(&(rfp->rf_access));
Line 260 
Line 263 
         if (rfp->rf_branch != NULL)          if (rfp->rf_branch != NULL)
                 rcsnum_free(rfp->rf_branch);                  rcsnum_free(rfp->rf_branch);
   
           if (rfp->rf_file != NULL)
                   fclose(rfp->rf_file);
         if (rfp->rf_path != NULL)          if (rfp->rf_path != NULL)
                 xfree(rfp->rf_path);                  xfree(rfp->rf_path);
         if (rfp->rf_comment != NULL)          if (rfp->rf_comment != NULL)

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