mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-10-26 20:25:14 +03:00
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
This commit is contained in:
parent
e4301c8bdf
commit
144024e3a3
@ -1,3 +1,8 @@
|
|||||||
|
Wed Feb 13 22:13:33 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* 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 <daniel@veillard.com>
|
Wed Feb 13 14:30:49 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* include/libxml/entities.h: fixing a comment
|
* include/libxml/entities.h: fixing a comment
|
||||||
|
@ -518,7 +518,7 @@ xmlMemShow(FILE *fp, int nr)
|
|||||||
fprintf(fp,"NUMBER SIZE TYPE WHERE\n");
|
fprintf(fp,"NUMBER SIZE TYPE WHERE\n");
|
||||||
p = memlist;
|
p = memlist;
|
||||||
while ((p) && nr > 0) {
|
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) {
|
switch (p->mh_type) {
|
||||||
case STRDUP_TYPE:fprintf(fp,"strdup() in ");break;
|
case STRDUP_TYPE:fprintf(fp,"strdup() in ");break;
|
||||||
case MALLOC_TYPE:fprintf(fp,"malloc() in ");break;
|
case MALLOC_TYPE:fprintf(fp,"malloc() in ");break;
|
||||||
@ -551,7 +551,7 @@ xmlMemDisplay(FILE *fp)
|
|||||||
{
|
{
|
||||||
#ifdef MEM_LIST
|
#ifdef MEM_LIST
|
||||||
MEMHDR *p;
|
MEMHDR *p;
|
||||||
int idx;
|
unsigned idx;
|
||||||
int nb = 0;
|
int nb = 0;
|
||||||
#if defined(HAVE_LOCALTIME) && defined(HAVE_STRFTIME)
|
#if defined(HAVE_LOCALTIME) && defined(HAVE_STRFTIME)
|
||||||
time_t currentTime;
|
time_t currentTime;
|
||||||
@ -571,7 +571,8 @@ xmlMemDisplay(FILE *fp)
|
|||||||
idx = 0;
|
idx = 0;
|
||||||
p = memlist;
|
p = memlist;
|
||||||
while (p) {
|
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) {
|
switch (p->mh_type) {
|
||||||
case STRDUP_TYPE:fprintf(fp,"strdup() in ");break;
|
case STRDUP_TYPE:fprintf(fp,"strdup() in ");break;
|
||||||
case MALLOC_TYPE:fprintf(fp,"malloc() in ");break;
|
case MALLOC_TYPE:fprintf(fp,"malloc() in ");break;
|
||||||
|
Loading…
Reference in New Issue
Block a user