fix warnings

This commit is contained in:
Michael Wallner 2015-01-30 19:03:59 +01:00
parent d88edb6d96
commit 97b5dabeb1
2 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ int dom_documenttype_internal_subset_read(dom_object *obj, zval *retval)
xmlOutputBufferFlush(buff);
#ifdef LIBXML2_NEW_BUFFER
smart_str_appendl(&ret_buf, xmlOutputBufferGetContent(buff), xmlOutputBufferGetSize(buff));
smart_str_appendl(&ret_buf, (const char *) xmlOutputBufferGetContent(buff), xmlOutputBufferGetSize(buff));
#else
smart_str_appendl(&ret_buf, buff->buffer->content, buff->buffer->use);
#endif

View File

@ -153,7 +153,7 @@ PHP_FUNCTION(dom_nodelist_item)
} else {
nodep = nodep->children;
}
itemnode = dom_get_elements_by_tag_name_ns_raw(nodep, objmap->ns, objmap->local, &count, index);
itemnode = dom_get_elements_by_tag_name_ns_raw(nodep, (char *) objmap->ns, (char *) objmap->local, &count, index);
}
}
}