Skip to content

Commit

Permalink
* iconv/gconv_open.c (internal_trans_names): Mark as const.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Dec 20, 2005
1 parent d9038ff commit b7cc450
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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>

* sysdeps/unix/sysv/linux/sh/sysdep.h: Include tls.h.
Expand Down
5 changes: 3 additions & 2 deletions iconv/gconv_open.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ __gconv_open (const char *toset, const char *fromset, __gconv_t *handle,
{
/* It's the builtin transliteration handling. We only
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 *runp;

Expand All @@ -90,7 +91,7 @@ __gconv_open (const char *toset, const char *fromset, __gconv_t *handle,

/* We leave the `name' field zero to signal that
this is an internal transliteration step. */
newp->csnames = internal_trans_names;
newp->csnames = (const char **) internal_trans_names;
newp->ncsnames = 1;
newp->trans_fct = __gconv_transliterate;

Expand Down

0 comments on commit b7cc450

Please sign in to comment.