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 * ); ...@@ -122,7 +122,7 @@ static char *xtag_get_attribute( XTag *, char * );
#endif #endif
static XTag *xtag_first_child( XTag *, char * ); static XTag *xtag_first_child( XTag *, char * );
static XTag *xtag_next_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 * ); static int xtag_snprint( char *, int, XTag * );
/***************************************************************************** /*****************************************************************************
...@@ -756,14 +756,14 @@ static XTag *xtag_parse_tag( XTagParser *parser ) ...@@ -756,14 +756,14 @@ static XTag *xtag_parse_tag( XTagParser *parser )
return tag; return tag;
} }
static XTag *xtag_free( XTag *xtag ) static void xtag_free( XTag *xtag )
{ {
XList *l; XList *l;
XAttribute *attr; XAttribute *attr;
XTag *child; XTag *child;
if( !xtag ) if( !xtag )
return NULL; return;
free( xtag->name ); free( xtag->name );
free( xtag->pcdata ); free( xtag->pcdata );
...@@ -787,8 +787,6 @@ static XTag *xtag_free( XTag *xtag ) ...@@ -787,8 +787,6 @@ static XTag *xtag_free( XTag *xtag )
xlist_free( xtag->children ); xlist_free( xtag->children );
free( xtag ); free( xtag );
return NULL;
} }
static XTag *xtag_new_parse( const char *s, int n ) 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