WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Fix curldebug function in xendomain.c of xfrd. Function

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Fix curldebug function in xendomain.c of xfrd. Function takes argument
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Mon, 18 Apr 2005 21:10:18 +0000
Delivery-date: Tue, 19 Apr 2005 01:04:10 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1159.256.100, 2005/04/18 22:10:18+01:00, iap10@xxxxxxxxxxxxxxxxxxxxx

        Fix curldebug function in xendomain.c of xfrd. Function takes argument
        "size_t buf_num" and uses it as the field width to print, that has to be
        an int. While size_t on 32 bit systems is 4bytes (or size of an int) it
        is 8bytes on 64bit systems (not size of an int). So this function should
        just use "int buf_num". This function is not used in the code anywhere.
        This will fix compilation on x86-64.
        
        Signed-off-by: Jerone Young <jyoung5@xxxxxxxxxx>



 xen_domain.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/tools/xfrd/xen_domain.c b/tools/xfrd/xen_domain.c
--- a/tools/xfrd/xen_domain.c   2005-04-18 21:04:26 -04:00
+++ b/tools/xfrd/xen_domain.c   2005-04-18 21:04:26 -04:00
@@ -176,7 +176,7 @@
 
 /** Curl debug function.
  */
-int curldebug(CURL *curl, curl_infotype ty, char *buf, size_t buf_n, void 
*data){
+int curldebug(CURL *curl, curl_infotype ty, char *buf, int buf_n, void *data){
     // printf("%*s\n", buf_n, buf); /* Does not compile correctly on non 32bit 
platforms */
     fwrite(data, buf_n, 1, stdout);
     printf("\n");

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

<Prev in Thread] Current Thread [Next in Thread>