From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerone Young Subject: [PATCH] [RESUBMIT] xfrd x86-64 compilation fix Date: Tue, 29 Mar 2005 01:41:14 -0600 Message-ID: <1112082075.7192.3.camel@thinkpad> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-36tESbZ2Jf7ZcHTAsn4i" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org --=-36tESbZ2Jf7ZcHTAsn4i Content-Type: text/plain Content-Transfer-Encoding: 7bit I've taken the suggestion by Anthony and used fwrite instead of changing the function argument buf_n to be an int for function curl_debug in xen_domain.c of tools/xfrd. Signed-off-by: Jerone Young -- Jerone Young IBM Linux Technology Center jyoung5@us.ibm.com 512-838-1157 (T/L: 678-1157) --=-36tESbZ2Jf7ZcHTAsn4i Content-Disposition: attachment; filename=xfrd_curl_debug_fix.diff Content-Type: text/x-patch; name=xfrd_curl_debug_fix.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit --- tools/xfrd/xen_domain.c.orig 2005-03-28 10:22:37.000000000 -0600 +++ tools/xfrd/xen_domain.c 2005-03-28 10:31:03.000000000 -0600 @@ -177,7 +177,9 @@ static CURL *curlinit(void){ /** Curl debug function. */ int curldebug(CURL *curl, curl_infotype ty, char *buf, size_t buf_n, void *data){ - printf("%*s\n", buf_n, buf); + // printf("%*s\n", buf_n, buf); /* Does not compile correctly on non 32bit platforms */ + fwrite(data, buf_n, 1, stdout); + printf("\n"); return 0; } --=-36tESbZ2Jf7ZcHTAsn4i Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-36tESbZ2Jf7ZcHTAsn4i--