[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.