mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 16:21:06 +00:00
* iconv/gconv_open.c (internal_trans_names): Mark as const.
This commit is contained in:
parent
d9038ff837
commit
b7cc4503da
@ -1,3 +1,7 @@
|
|||||||
|
2005-12-20 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* iconv/gconv_open.c (internal_trans_names): Mark as const.
|
||||||
|
|
||||||
2005-12-19 Kaz Kojima <kkojima@rr.iij4u.or.jp>
|
2005-12-19 Kaz Kojima <kkojima@rr.iij4u.or.jp>
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/sh/sysdep.h: Include tls.h.
|
* sysdeps/unix/sysv/linux/sh/sysdep.h: Include tls.h.
|
||||||
|
@ -71,7 +71,8 @@ __gconv_open (const char *toset, const char *fromset, __gconv_t *handle,
|
|||||||
{
|
{
|
||||||
/* It's the builtin transliteration handling. We only
|
/* It's the builtin transliteration handling. We only
|
||||||
support it for working on the internal encoding. */
|
support it for working on the internal encoding. */
|
||||||
static const char *internal_trans_names[1] = { "INTERNAL" };
|
static const char *const internal_trans_names[1]
|
||||||
|
= { "INTERNAL" };
|
||||||
struct trans_struct *lastp = NULL;
|
struct trans_struct *lastp = NULL;
|
||||||
struct trans_struct *runp;
|
struct trans_struct *runp;
|
||||||
|
|
||||||
@ -90,7 +91,7 @@ __gconv_open (const char *toset, const char *fromset, __gconv_t *handle,
|
|||||||
|
|
||||||
/* We leave the `name' field zero to signal that
|
/* We leave the `name' field zero to signal that
|
||||||
this is an internal transliteration step. */
|
this is an internal transliteration step. */
|
||||||
newp->csnames = internal_trans_names;
|
newp->csnames = (const char **) internal_trans_names;
|
||||||
newp->ncsnames = 1;
|
newp->ncsnames = 1;
|
||||||
newp->trans_fct = __gconv_transliterate;
|
newp->trans_fct = __gconv_transliterate;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user