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

Diff for /src/usr.bin/rcs/rcsprog.c between version 1.140 and 1.141

version 1.140, 2008/02/24 15:13:18 version 1.141, 2008/03/04 16:43:51
Line 436 
Line 436 
                         const char *username;                          const char *username;
                         char rev_str[RCS_REV_BUFSZ];                          char rev_str[RCS_REV_BUFSZ];
   
                           if (file->rf_head == NULL) {
                                   warnx("%s contains no revisions", fpath);
                                   rcs_close(file);
                                   continue;
                           }
   
                         if ((username = getlogin()) == NULL)                          if ((username = getlogin()) == NULL)
                                 err(1, "getlogin");                                  err(1, "getlogin");
                         if (lrev == NULL) {                          if (lrev == NULL) {
Line 461 
Line 467 
                         RCSNUM *rev;                          RCSNUM *rev;
                         const char *username;                          const char *username;
                         char rev_str[RCS_REV_BUFSZ];                          char rev_str[RCS_REV_BUFSZ];
   
                           if (file->rf_head == NULL) {
                                   warnx("%s contains no revisions", fpath);
                                   rcs_close(file);
                                   continue;
                           }
   
                         if ((username = getlogin()) == NULL)                          if ((username = getlogin()) == NULL)
                                 err(1, "getlogin");                                  err(1, "getlogin");

Legend:
Removed from v.1.140  
changed lines
  Added in v.1.141