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

Diff for /src/usr.bin/cvs/Attic/proto.c between version 1.54 and 1.55

version 1.54, 2005/05/24 06:42:38 version 1.55, 2005/05/26 22:27:11
Line 660 
Line 660 
         return (fbuf);          return (fbuf);
 }  }
   
   
 /*  /*
  * cvs_sendreq()   * cvs_sendreq()
  *   *
Line 767 
Line 766 
  *   *
  * Get a line from the remote end and store it in <lbuf>.  The terminating   * Get a line from the remote end and store it in <lbuf>.  The terminating
  * newline character is stripped from the result.   * newline character is stripped from the result.
    * Returns the length in bytes of the line (not including the NUL byte), or
    * -1 on failure.
  */   */
 int  int
 cvs_getln(struct cvsroot *root, char *lbuf, size_t len)  cvs_getln(struct cvsroot *root, char *lbuf, size_t len)
Line 796 
Line 797 
         if ((rlen > 0) && (lbuf[rlen - 1] == '\n'))          if ((rlen > 0) && (lbuf[rlen - 1] == '\n'))
                 lbuf[--rlen] = '\0';                  lbuf[--rlen] = '\0';
   
         return (0);          return (rlen);
 }  }
   
   
Line 898 
Line 899 
         if (cvs_server_inlog != NULL) {          if (cvs_server_inlog != NULL) {
                 fputs(line, cvs_server_inlog);                  fputs(line, cvs_server_inlog);
                 if (nl)                  if (nl)
                         fputc('\n', cvs_server_inlog);                          putc('\n', cvs_server_inlog);
         }          }
         fputs(line, out);          fputs(line, out);
         if (nl)          if (nl)
                 fputc('\n', out);                  putc('\n', out);
         return (0);          return (0);
 }  }
   

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.55