All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerone Young <jyoung5@us.ibm.com>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: [PATCH] [RESUBMIT] xfrd x86-64 compilation fix
Date: Tue, 29 Mar 2005 01:41:14 -0600	[thread overview]
Message-ID: <1112082075.7192.3.camel@thinkpad> (raw)

[-- 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

                 reply	other threads:[~2005-03-29  7:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1112082075.7192.3.camel@thinkpad \
    --to=jyoung5@us.ibm.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.