parser/expat: don't cast name to char*

name already has type char*, remove redundant code.
This commit is contained in:
Dmitry Podgorny
2019-03-04 18:01:29 +02:00
parent d8329960c5
commit c40b4c12c1

View File

@@ -137,7 +137,7 @@ static void _start_element(void *userdata,
if (parser->depth == 0) {
/* notify the owner */
if (parser->startcb)
parser->startcb((char *)name, (char **)attrs,
parser->startcb(name, (char **)attrs,
parser->userdata);
} else {
/* build stanzas at depth 1 */