summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/gb2312.c
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-04-10 00:27:52 +0000
committertjr <tjr@FreeBSD.org>2004-04-10 00:27:52 +0000
commit17077e5ae6a3c32d437e907200a241336105a539 (patch)
treef5d0e26237e059acebf353c9e2f2da825994f79d /lib/libc/locale/gb2312.c
parent043ec21649d9c0e33013b9092b6ea700f0d15ab8 (diff)
downloadFreeBSD-src-17077e5ae6a3c32d437e907200a241336105a539.zip
FreeBSD-src-17077e5ae6a3c32d437e907200a241336105a539.tar.gz
Don't cast away const qualifiers.
Spotted by: bde
Diffstat (limited to 'lib/libc/locale/gb2312.c')
-rw-r--r--lib/libc/locale/gb2312.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/gb2312.c b/lib/libc/locale/gb2312.c
index 8509d04..35b4863 100644
--- a/lib/libc/locale/gb2312.c
+++ b/lib/libc/locale/gb2312.c
@@ -65,7 +65,7 @@ int
_GB2312_mbsinit(const mbstate_t *ps)
{
- return (ps == NULL || ((_GB2312State *)ps)->count == 0);
+ return (ps == NULL || ((const _GB2312State *)ps)->count == 0);
}
static __inline int
OpenPOWER on IntegriCloud