printf("cvs_sendreq returning %d\n", ret);
cvs_sendreq(struct cvsroot *root, u_int rid, const char *arg){	int ret, l;	struct cvs_req *req;	if (root->cr_srvin == NULL) {		cvs_log(LP_ERR, "cannot send request %u: Not connected", rid);		return (-1);	}	req = cvs_req_getbyid(rid);	if (req == NULL) {		cvs_log(LP_ERR, "unsupported request type %u", rid);		return (-1);	}	/* is this request supported by the server? */	if (!CVS_GETVR(root, req->req_id)) {		if (rid == CVS_REQ_VERSION) {			ret = cvs_sendreq(root, CVS_REQ_NOOP, arg);		} else {			cvs_log(LP_WARN,			    "remote end does not support request `%s'",			    req->req_str);			ret = -1;		}		return (ret);	}	l = snprintf(cvs_proto_buf, sizeof(cvs_proto_buf), "%s%s%s\n",	    req->req_str, (arg == NULL) ? "" : " ", (arg == NULL) ? "" : arg);	if (l == -1 || l >= (int)sizeof(cvs_proto_buf))		return (-1);	if (cvs_server_inlog != NULL)		fputs(cvs_proto_buf, cvs_server_inlog);	ret = fputs(cvs_proto_buf, root->cr_srvin);	if (ret == EOF) {		cvs_log(LP_ERRNO, "failed to send request to server");		return (-1);	}	if (rid == CVS_REQ_VERSION)		cvs_version_sent = 1;	if (req->req_flags & CVS_REQF_RESP)		ret = cvs_getresp(root);	printf("cvs_sendreq returning %d\n", ret);	return (ret);}