From 144024e3a3489f5b6d896dfa7073c430462fadd2 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Wed, 13 Feb 2002 21:14:46 +0000 Subject: [PATCH] Jesse Perry provided a patch to remove a few warning on alpha/Tru64 Daniel * xmlmemory.c: Jesse Perry provided a patch to remove a few warning on alpha/Tru64 Daniel --- ChangeLog | 5 +++++ xmlmemory.c | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index e4e766ae..3169ef78 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Feb 13 22:13:33 CET 2002 Daniel Veillard + + * xmlmemory.c: Jesse Perry provided a patch to remove a few + warning on alpha/Tru64 + Wed Feb 13 14:30:49 CET 2002 Daniel Veillard * include/libxml/entities.h: fixing a comment diff --git a/xmlmemory.c b/xmlmemory.c index b185bb2c..7653b1a2 100644 --- a/xmlmemory.c +++ b/xmlmemory.c @@ -518,7 +518,7 @@ xmlMemShow(FILE *fp, int nr) fprintf(fp,"NUMBER SIZE TYPE WHERE\n"); p = memlist; while ((p) && nr > 0) { - fprintf(fp,"%6lu %6u ",p->mh_number,p->mh_size); + fprintf(fp,"%6lu %6lu ",p->mh_number,(unsigned long)p->mh_size); switch (p->mh_type) { case STRDUP_TYPE:fprintf(fp,"strdup() in ");break; case MALLOC_TYPE:fprintf(fp,"malloc() in ");break; @@ -551,7 +551,7 @@ xmlMemDisplay(FILE *fp) { #ifdef MEM_LIST MEMHDR *p; - int idx; + unsigned idx; int nb = 0; #if defined(HAVE_LOCALTIME) && defined(HAVE_STRFTIME) time_t currentTime; @@ -571,7 +571,8 @@ xmlMemDisplay(FILE *fp) idx = 0; p = memlist; while (p) { - fprintf(fp,"%-5u %6lu %6u ",idx++,p->mh_number,p->mh_size); + fprintf(fp,"%-5u %6lu %6lu ",idx++,p->mh_number, + (unsigned long)p->mh_size); switch (p->mh_type) { case STRDUP_TYPE:fprintf(fp,"strdup() in ");break; case MALLOC_TYPE:fprintf(fp,"malloc() in ");break;