parser/expat: don't cast name to char*
name already has type char*, remove redundant code.
This commit is contained in:
@@ -137,7 +137,7 @@ static void _start_element(void *userdata,
|
|||||||
if (parser->depth == 0) {
|
if (parser->depth == 0) {
|
||||||
/* notify the owner */
|
/* notify the owner */
|
||||||
if (parser->startcb)
|
if (parser->startcb)
|
||||||
parser->startcb((char *)name, (char **)attrs,
|
parser->startcb(name, (char **)attrs,
|
||||||
parser->userdata);
|
parser->userdata);
|
||||||
} else {
|
} else {
|
||||||
/* build stanzas at depth 1 */
|
/* build stanzas at depth 1 */
|
||||||
|
|||||||
Reference in New Issue
Block a user