From 5f7d74ab7164aec66e2aa1d6884d62d403eddaa7 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 7 Sep 2000 23:37:19 +0000 Subject: Update. * iconvdata/tst-table-to.c (main): Correct cast in iconv call. * iconvdata/tst-table-from.c: Include . (try): Correct cast in iconv call. --- iconvdata/tst-table-from.c | 3 ++- iconvdata/tst-table-to.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'iconvdata') diff --git a/iconvdata/tst-table-from.c b/iconvdata/tst-table-from.c index bd2647e..92a562d 100644 --- a/iconvdata/tst-table-from.c +++ b/iconvdata/tst-table-from.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -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)) { diff --git a/iconvdata/tst-table-to.c b/iconvdata/tst-table-to.c index b725f1f..329ba4a 100644 --- a/iconvdata/tst-table-to.c +++ b/iconvdata/tst-table-to.c @@ -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)) { -- cgit v1.1