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

Diff for /src/usr.bin/cvs/remote.c between version 1.29 and 1.30

version 1.29, 2010/07/23 21:46:05 version 1.30, 2015/01/16 06:40:07
Line 15 
Line 15 
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.   * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */   */
   
   #include <sys/param.h>  /* MAXBSIZE */
 #include <sys/stat.h>  #include <sys/stat.h>
   
 #include <errno.h>  #include <errno.h>
Line 27 
Line 28 
 #include "cvs.h"  #include "cvs.h"
 #include "remote.h"  #include "remote.h"
   
   #define MINIMUM(a, b)   (((a) < (b)) ? (a) : (b))
   
 struct cvs_resp *  struct cvs_resp *
 cvs_remote_get_response_info(const char *response)  cvs_remote_get_response_info(const char *response)
 {  {
Line 136 
Line 139 
         nleft = len;          nleft = len;
   
         while (nleft > 0) {          while (nleft > 0) {
                 toread = MIN(nleft, MAXBSIZE);                  toread = MINIMUM(nleft, MAXBSIZE);
   
                 nread = fread(data, sizeof(char), toread, in);                  nread = fread(data, sizeof(char), toread, in);
                 if (nread == 0)                  if (nread == 0)

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30