+2001-03-09 Bruno Haible <haible@clisp.cons.org>
+
+ * intl/dcigettext.c (transmem_block_t): Change to unsigned char, to
+ avoid compiler warning.
+ (_nl_find_msg): Add casts to avoid compiler warnings.
+
2001-03-21 Ulrich Drepper <drepper@redhat.com>
* gmon/Makefile (routines): Add sprofil.
} transmem_block_t;
static struct transmem_list *transmem_list;
#else
-typedef char transmem_block_t;
+typedef unsigned char transmem_block_t;
#endif
__libc_lock_lock (lock);
- inbuf = result;
+ inbuf = (const unsigned char *) result;
outbuf = freemem + sizeof (size_t);
malloc_count = 0;
goto resize_freemem;
outleft = freemem_size - sizeof (size_t);
- if (iconv (domain->conv, &inptr, &inleft, &outptr, &outleft)
+ if (iconv (domain->conv,
+ (ICONV_CONST char **) &inptr, &inleft,
+ &outptr, &outleft)
!= (size_t) (-1))
{
outbuf = (unsigned char *) outptr;
/* We have now in our buffer a converted string. Put this
into the table of conversions. */
*(size_t *) freemem = outbuf - freemem - sizeof (size_t);
- domain->conv_tab[act] = freemem;
+ domain->conv_tab[act] = (char *) freemem;
/* Shrink freemem, but keep it aligned. */
freemem_size -= outbuf - freemem;
freemem = outbuf;