xpressn.c, numparam.h: fcn del_attrib with void* argument,

required by nghash_free()
This commit is contained in:
h_vogt 2013-09-14 14:31:12 +02:00 committed by rlar
parent 61fefe31bb
commit b821e7e6cf
2 changed files with 3 additions and 2 deletions

View File

@ -77,4 +77,4 @@ void nupa_subcktexit(tdico *dico);
tdico *nupa_fetchinstance(void);
char getidtype(tdico *d, char *s);
entry *attrib(tdico *d, NGHASHPTR htable, char *t, char op);
void del_attrib(entry *);
void del_attrib(void *);

View File

@ -445,8 +445,9 @@ attrib(tdico *dico_p, NGHASHPTR htable_p, char *t, char op)
*/
void
del_attrib(entry *entry_p)
del_attrib(void *e_p)
{
entry *entry_p = (entry*)e_p;
if(entry_p) {
tfree(entry_p->symbol);
tfree(entry_p);