* iconvdata/tst-table-to.c (main): Correct cast in iconv call.
	* iconvdata/tst-table-from.c: Include <string.h>.
	(try): Correct cast in iconv call.
This commit is contained in:
Ulrich Drepper 2000-09-07 23:37:19 +00:00
parent e39e69563a
commit 5f7d74ab71
3 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,9 @@
2000-09-07 Ulrich Drepper <drepper@redhat.com>
* iconvdata/tst-table-to.c (main): Correct cast in iconv call.
* iconvdata/tst-table-from.c: Include <string.h>.
(try): Correct cast in iconv call.
* elf/Makefile (all-rtld-routines): Evaluate $(sysdep-rtld-routines)
too.
* sysdeps/powerpc/Makefile (sysdep-rtld-routines): New variable.

View File

@ -24,6 +24,7 @@
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iconv.h>
#include <errno.h>
@ -64,7 +65,7 @@ try (iconv_t cd, unsigned char buf[], unsigned int buflen, unsigned char *out)
char *outbuf = (char *) out;
size_t outbytesleft = 6;
size_t result = iconv (cd,
(char *) &inbuf, &inbytesleft,
(char **) &inbuf, &inbytesleft,
&outbuf, &outbytesleft);
if (result == (size_t)(-1))
{

View File

@ -59,7 +59,7 @@ main (int argc, char *argv[])
char *outbuf = (char *) buf;
size_t outbytesleft = sizeof (buf);
size_t result = iconv (cd,
(char *) &inbuf, &inbytesleft,
(char **) &inbuf, &inbytesleft,
&outbuf, &outbytesleft);
if (result == (size_t)(-1))
{