From: Ulrich Drepper Date: Mon, 27 Nov 2000 17:46:49 +0000 (+0000) Subject: (get16): Add const to cast. (get32): Likewise. X-Git-Tag: cvs/glibc-2_2_1~277 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b91d5eda6e894ca12c4971dbcfb69f02abd42800;p=thirdparty%2Fglibc.git (get16): Add const to cast. (get32): Likewise. --- diff --git a/iconv/loop.c b/iconv/loop.c index 7b5ef0030ff..79e17ebde84 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)