author | ecalot
<ecalot> 2006-01-02 09:03:35 UTC |
committer | ecalot
<ecalot> 2006-01-02 09:03:35 UTC |
parent | 9aec8c168dcf3ab3fcd6d1aede7193f8c121f593 |
PR/src/lib/xml/tree.c | +3 | -5 |
diff --git a/PR/src/lib/xml/tree.c b/PR/src/lib/xml/tree.c index 90b9e0b..6ccef62 100644 --- a/PR/src/lib/xml/tree.c +++ b/PR/src/lib/xml/tree.c @@ -56,12 +56,10 @@ tree.c: Princed Resources : Tree handling routines \***************************************************************/ typedef struct { - /*const*/char* attr; + const char* attr; int count; }tAttrCount; -void attrfree() {} - int attrcmp(const void* x,const void* y) { register const tAttrCount* a=x; register const tAttrCount* b=y; @@ -72,7 +70,7 @@ int attrcmp(const void* x,const void* y) { return EQ; } -void increase(/*const */char* attr,tList* l) { +void increase(const char* attr,tList* l) { tAttrCount a; tAttrCount* aux; @@ -93,7 +91,7 @@ void commonFactor(tTag* parent) { int c=0; int max=0; const char* result=NULL; - tList l=list_create(sizeof(tAttrCount),attrcmp,attrfree); + tList l=list_create(sizeof(tAttrCount),attrcmp,NULL); for (child=parent->child;child;child=child->next) { if (child->palette)