summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/gb18030.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/gb18030.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/gb18030.c')
-rw-r--r--lib/libc/locale/gb18030.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/gb18030.c b/lib/libc/locale/gb18030.c
index 817602b..ee895d5 100644
--- a/lib/libc/locale/gb18030.c
+++ b/lib/libc/locale/gb18030.c
@@ -71,7 +71,7 @@ int
_GB18030_mbsinit(const mbstate_t *ps)
{
- return (ps == NULL || ((_GB18030State *)ps)->count == 0);
+ return (ps == NULL || ((const _GB18030State *)ps)->count == 0);
}
size_t
OpenPOWER on IntegriCloud