Changeset 2177

Show
Ignore:
Timestamp:
09/23/08 21:26:30 (4 months ago)
Author:
karpet
Message:

fix html parser to use actual libxml2 api; quiet a compiler warning

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libswish3/trunk/src/libswish3/parser.c

    r2176 r2177  
    259259 
    260260    if (SWISH_DEBUG & SWISH_DEBUG_MEMORY) { 
    261         SWISH_DEBUG_MSG("parser ptr 0x%x", (int)p); 
     261        SWISH_DEBUG_MSG("parser ptr 0x%x", (long int)p); 
    262262    } 
    263263 
     
    18531853) 
    18541854{ 
    1855     htmlDocPtr ret; 
     1855    int ret; 
    18561856    htmlParserCtxtPtr ctxt; 
    18571857    htmlSAXHandlerPtr oldsax = 0; 
     
    18791879        ctxt->userData = parser_data; 
    18801880    } 
    1881     htmlParseDocument(ctxt); 
     1881    ret = htmlParseDocument(ctxt); 
    18821882 
    18831883    if (sax != 0) { 
     
    18861886    } 
    18871887 
    1888     return ret ? 0 : 1
     1888    return ret
    18891889} 
    18901890