Commit 82c1d83c authored by Rémi Duraffort's avatar Rémi Duraffort

xtag_free don't need to return anything.

parent dfce44aa
......@@ -122,7 +122,7 @@ static char *xtag_get_attribute( XTag *, char * );
#endif
static XTag *xtag_first_child( XTag *, char * );
static XTag *xtag_next_child( XTag *, char * );
static XTag *xtag_free( XTag * );
static void xtag_free( XTag * );
static int xtag_snprint( char *, int, XTag * );
/*****************************************************************************
......@@ -756,14 +756,14 @@ static XTag *xtag_parse_tag( XTagParser *parser )
return tag;
}
static XTag *xtag_free( XTag *xtag )
static void xtag_free( XTag *xtag )
{
XList *l;
XAttribute *attr;
XTag *child;
if( !xtag )
return NULL;
return;
free( xtag->name );
free( xtag->pcdata );
......@@ -787,8 +787,6 @@ static XTag *xtag_free( XTag *xtag )
xlist_free( xtag->children );
free( xtag );
return NULL;
}
static XTag *xtag_new_parse( const char *s, int n )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment