version 1.29, 2010/07/23 21:46:05 |
version 1.30, 2015/01/16 06:40:07 |
|
|
* 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> |
|
|
#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) |
{ |
{ |
|
|
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) |