mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 10:50:07 +00:00
Update.
* 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:
parent
e39e69563a
commit
5f7d74ab71
@ -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.
|
||||
|
@ -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))
|
||||
{
|
||||
|
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user