aboutsummaryrefslogtreecommitdiff
path: root/iconv
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-11-27 17:46:49 +0000
committerUlrich Drepper <drepper@redhat.com>2000-11-27 17:46:49 +0000
commitb91d5eda6e894ca12c4971dbcfb69f02abd42800 (patch)
tree3447c1481a9cb23a73d37bbd31262e416fac8821 /iconv
parentd54fb3b68c3f40b3410183de354cdbe1d648a8bf (diff)
downloadglibc-b91d5eda6e894ca12c4971dbcfb69f02abd42800.tar
glibc-b91d5eda6e894ca12c4971dbcfb69f02abd42800.tar.gz
glibc-b91d5eda6e894ca12c4971dbcfb69f02abd42800.tar.bz2
glibc-b91d5eda6e894ca12c4971dbcfb69f02abd42800.zip
(get16): Add const to cast. (get32): Likewise.
Diffstat (limited to 'iconv')
-rw-r--r--iconv/loop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iconv/loop.c b/iconv/loop.c
index 7b5ef0030f..79e17ebde8 100644
--- a/iconv/loop.c
+++ b/iconv/loop.c
@@ -63,8 +63,8 @@
#undef FCTNAME2
#if defined _STRING_ARCH_unaligned || !defined DEFINE_UNALIGNED
/* We can handle unaligned memory access. */
-# define get16(addr) *((uint16_t *) (addr))
-# define get32(addr) *((uint32_t *) (addr))
+# define get16(addr) *((__const uint16_t *) (addr))
+# define get32(addr) *((__const uint32_t *) (addr))
/* We need no special support for writing values either. */
# define put16(addr, val) *((uint16_t *) (addr)) = (val)