diff options
author | tjr <tjr@FreeBSD.org> | 2004-04-10 00:27:52 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-04-10 00:27:52 +0000 |
commit | 17077e5ae6a3c32d437e907200a241336105a539 (patch) | |
tree | f5d0e26237e059acebf353c9e2f2da825994f79d /lib/libc/locale/gb2312.c | |
parent | 043ec21649d9c0e33013b9092b6ea700f0d15ab8 (diff) | |
download | FreeBSD-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.c | 2 |
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 |