Skip to contentSkip to conversation

xfrd x86-64 compilation fix

PATCH New Jerone Young 1 participant 1 message Mar 29, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfrd x86-64 compilation fix

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.

Signature · 4 lines
Jerone Young
IBM Linux Technology Center
[email protected]
512-838-1157 (T/L: 678-1157)
xfrd/xen_domain.c renamed from xfrd/xen_domain.c.orig +3 -1
@@ -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;
 }
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel