diff options
Diffstat (limited to 'protocols')
| -rw-r--r-- | protocols/jabber/io.c | 9 | ||||
| -rw-r--r-- | protocols/jabber/presence.c | 5 | ||||
| -rw-r--r-- | protocols/jabber/xmltree.c | 2 | 
3 files changed, 2 insertions, 14 deletions
| diff --git a/protocols/jabber/io.c b/protocols/jabber/io.c index 67deb3a6..925463a4 100644 --- a/protocols/jabber/io.c +++ b/protocols/jabber/io.c @@ -475,14 +475,6 @@ static xt_status jabber_pkt_stream_error( struct xt_node *node, gpointer data )  	return XT_ABORT;  } -static xt_status jabber_pkt_misc( struct xt_node *node, gpointer data ) -{ -	printf( "Received unknown packet:\n" ); -	xt_print( node ); -	 -	return XT_HANDLED; -} -  static const struct xt_handler_entry jabber_handlers[] = {  	{ "stream:stream",      "<root>",               jabber_end_of_stream },  	{ "message",            "stream:stream",        jabber_pkt_message }, @@ -494,7 +486,6 @@ static const struct xt_handler_entry jabber_handlers[] = {  	{ "challenge",          "stream:stream",        sasl_pkt_challenge },  	{ "success",            "stream:stream",        sasl_pkt_result },  	{ "failure",            "stream:stream",        sasl_pkt_result }, -	{ NULL,                 "stream:stream",        jabber_pkt_misc },  	{ NULL,                 NULL,                   NULL }  }; diff --git a/protocols/jabber/presence.c b/protocols/jabber/presence.c index ef92740a..49c66a3d 100644 --- a/protocols/jabber/presence.c +++ b/protocols/jabber/presence.c @@ -127,11 +127,6 @@ xt_status jabber_pkt_presence( struct xt_node *node, gpointer data )  	{  		/* What to do with it? */  	} -	else -	{ -		printf( "Received PRES from %s:\n", from ); -		xt_print( node ); -	}  	return XT_HANDLED;  } diff --git a/protocols/jabber/xmltree.c b/protocols/jabber/xmltree.c index 7a165a1e..7e74cccb 100644 --- a/protocols/jabber/xmltree.c +++ b/protocols/jabber/xmltree.c @@ -304,6 +304,7 @@ char *xt_to_string( struct xt_node *node )  	return real;  } +#ifdef DEBUG  void xt_print( struct xt_node *node )  {  	int i; @@ -354,6 +355,7 @@ void xt_print( struct xt_node *node )  	/* Non-empty tag is now finished. */  	printf( "</%s>\n", node->name );  } +#endif  struct xt_node *xt_dup( struct xt_node *node )  { | 
