ia64/xen-unstable

changeset 4556:c35967b5863a

bitkeeper revision 1.1159.258.100 (4264223aKtYgG3NrSKfbwM7nfkpGcg)

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@us.ibm.com>
author iap10@freefall.cl.cam.ac.uk
date Mon Apr 18 21:10:18 2005 +0000 (2005-04-18)
parents a7679ebfe9cc
children 4b759824a678 fde01e3e4b45
files tools/xfrd/xen_domain.c
line diff
     1.1 --- a/tools/xfrd/xen_domain.c	Mon Apr 18 20:58:15 2005 +0000
     1.2 +++ b/tools/xfrd/xen_domain.c	Mon Apr 18 21:10:18 2005 +0000
     1.3 @@ -176,7 +176,7 @@ static CURL *curlinit(void){
     1.4  
     1.5  /** Curl debug function.
     1.6   */
     1.7 -int curldebug(CURL *curl, curl_infotype ty, char *buf, size_t buf_n, void *data){
     1.8 +int curldebug(CURL *curl, curl_infotype ty, char *buf, int buf_n, void *data){
     1.9      // printf("%*s\n", buf_n, buf); /* Does not compile correctly on non 32bit platforms */
    1.10      fwrite(data, buf_n, 1, stdout);
    1.11      printf("\n");