1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-27 18:50:07 +03:00

Add cast to fix warning. Add include of <libxml/parser.h>.

* encoding.c: (xmlIconvWrapper): Add cast to fix warning.
	* testCatalog.c: Add include of <libxml/parser.h>.
This commit is contained in:
Darin Adler 2001-07-27 22:47:14 +00:00
parent 25997ca02a
commit 699613b192
3 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-07-27 Darin Adler <darin@bentspoon.com>
* encoding.c: (xmlIconvWrapper): Add cast to fix warning.
* testCatalog.c: Add include of <libxml/parser.h>.
2001-07-27 Darin Adler <darin@bentspoon.com>
* include/libxml/.cvsignore:

View File

@ -1899,7 +1899,7 @@ xmlIconvWrapper(iconv_t cd,
char *icv_out = (char *) out;
int ret;
ret = iconv(cd, &icv_in, &icv_inlen, &icv_out, &icv_outlen);
ret = iconv(cd, (char **) &icv_in, &icv_inlen, &icv_out, &icv_outlen);
if (in != NULL) {
*inlen -= icv_inlen;
*outlen -= icv_outlen;

View File

@ -15,6 +15,7 @@
#include <libxml/xmlmemory.h>
#include <libxml/uri.h>
#include <libxml/catalog.h>
#include <libxml/parser.h>
int main(int argc, char **argv) {
#ifdef LIBXML_CATALOG_ENABLED