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/euc.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/euc.c')
-rw-r--r-- | lib/libc/locale/euc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/euc.c b/lib/libc/locale/euc.c index 490b1c8..92a3d4c 100644 --- a/lib/libc/locale/euc.c +++ b/lib/libc/locale/euc.c @@ -126,7 +126,7 @@ int _EUC_mbsinit(const mbstate_t *ps) { - return (ps == NULL || ((_EucState *)ps)->count == 0); + return (ps == NULL || ((const _EucState *)ps)->count == 0); } #define CEI ((_EucInfo *)(_CurrentRuneLocale->variable)) |