Some cppcheck cleaning

This commit is contained in:
Julien Nabet
2011-01-11 21:06:19 +00:00
committed by Caolán McNamara
parent fd8e6b21a5
commit 2bc5fb3428
4 changed files with 16 additions and 55 deletions

View File

@@ -164,19 +164,8 @@ int xmlStreamClose( void * context )
int xmlEnableStreamInputCallbacks()
{
int cbs = 0 ;
if( !( enableXmlStreamIO & XMLSTREAMIO_INITIALIZED ) ) {
//Register the callbacks into libxml2
//cbs = xmlRegisterInputCallbacks(
// xmlStreamMatch,
// xmlStreamOpen,
// xmlStreamRead,
// xmlStreamClose ) ;
//if( cbs < 0 ) {
// return -1 ;
//}
//Register the callbacks into xmlSec
//In order to make the xmlsec io finding the callbacks firstly,
//I put the callbacks at the very begining.
@@ -186,7 +175,7 @@ int xmlEnableStreamInputCallbacks()
xmlSecIOCleanupCallbacks() ;
//Register my classbacks.
cbs = xmlSecIORegisterCallbacks(
int cbs = xmlSecIORegisterCallbacks(
xmlStreamMatch,
xmlStreamOpen,
xmlStreamRead,