diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-09-07 23:37:19 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-09-07 23:37:19 +0000 |
commit | 5f7d74ab7164aec66e2aa1d6884d62d403eddaa7 (patch) | |
tree | d550e33aef98c6e200a45641fc8ea4187517f9b6 /iconvdata/tst-table-from.c | |
parent | Update. (diff) | |
download | glibc-5f7d74ab7164aec66e2aa1d6884d62d403eddaa7.tar.gz glibc-5f7d74ab7164aec66e2aa1d6884d62d403eddaa7.tar.bz2 glibc-5f7d74ab7164aec66e2aa1d6884d62d403eddaa7.zip |
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.
Diffstat (limited to 'iconvdata/tst-table-from.c')
-rw-r--r-- | iconvdata/tst-table-from.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/iconvdata/tst-table-from.c b/iconvdata/tst-table-from.c index bd2647eae0..92a562d884 100644 --- a/iconvdata/tst-table-from.c +++ b/iconvdata/tst-table-from.c @@ -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)) { |