All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [RESUBMIT] xfrd x86-64 compilation fix
@ 2005-03-29  7:41 Jerone Young
  0 siblings, 0 replies; only message in thread
From: Jerone Young @ 2005-03-29  7:41 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 313 bytes --]

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 <jyoung5@us.ibm.com>

-- 
Jerone Young
IBM Linux Technology Center
jyoung5@us.ibm.com
512-838-1157 (T/L: 678-1157)

[-- Attachment #2: xfrd_curl_debug_fix.diff --]
[-- Type: text/x-patch, Size: 499 bytes --]

--- 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;
 }
 

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-03-29  7:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-29  7:41 [PATCH] [RESUBMIT] xfrd x86-64 compilation fix Jerone Young

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.