diff options
author | Tim J. Robbins <tjr@FreeBSD.org> | 2004-04-10 00:27:52 +0000 |
---|---|---|
committer | Tim J. Robbins <tjr@FreeBSD.org> | 2004-04-10 00:27:52 +0000 |
commit | fa02ee78c88a0293964700aae6b758c0b4959a11 (patch) | |
tree | f5d0e26237e059acebf353c9e2f2da825994f79d /lib | |
parent | 6490c2ffabe2a6e5df2545d164f1c257e0d471de (diff) | |
download | src-fa02ee78c88a0293964700aae6b758c0b4959a11.tar.gz src-fa02ee78c88a0293964700aae6b758c0b4959a11.zip |
Don't cast away const qualifiers.
Spotted by: bde
Notes
Notes:
svn path=/head/; revision=128081
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/locale/big5.c | 2 | ||||
-rw-r--r-- | lib/libc/locale/euc.c | 2 | ||||
-rw-r--r-- | lib/libc/locale/gb18030.c | 2 | ||||
-rw-r--r-- | lib/libc/locale/gb2312.c | 2 | ||||
-rw-r--r-- | lib/libc/locale/gbk.c | 2 | ||||
-rw-r--r-- | lib/libc/locale/mskanji.c | 2 | ||||
-rw-r--r-- | lib/libc/locale/utf2.c | 2 | ||||
-rw-r--r-- | lib/libc/locale/utf8.c | 2 |
8 files changed, 8 insertions, 8 deletions
diff --git a/lib/libc/locale/big5.c b/lib/libc/locale/big5.c index ccf35f07eb6f..0dbf04dda5bd 100644 --- a/lib/libc/locale/big5.c +++ b/lib/libc/locale/big5.c @@ -78,7 +78,7 @@ int _BIG5_mbsinit(const mbstate_t *ps) { - return (ps == NULL || ((_BIG5State *)ps)->count == 0); + return (ps == NULL || ((const _BIG5State *)ps)->count == 0); } static __inline int diff --git a/lib/libc/locale/euc.c b/lib/libc/locale/euc.c index 490b1c856545..92a3d4c27eea 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)) diff --git a/lib/libc/locale/gb18030.c b/lib/libc/locale/gb18030.c index 817602b2a1cb..ee895d5a1f03 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 diff --git a/lib/libc/locale/gb2312.c b/lib/libc/locale/gb2312.c index 8509d04a2a13..35b486393386 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 diff --git a/lib/libc/locale/gbk.c b/lib/libc/locale/gbk.c index 880884fd0c7f..09b3aecbc2ea 100644 --- a/lib/libc/locale/gbk.c +++ b/lib/libc/locale/gbk.c @@ -75,7 +75,7 @@ int _GBK_mbsinit(const mbstate_t *ps) { - return (ps == NULL || ((_GBKState *)ps)->count == 0); + return (ps == NULL || ((const _GBKState *)ps)->count == 0); } static __inline int diff --git a/lib/libc/locale/mskanji.c b/lib/libc/locale/mskanji.c index 43bae6ce518d..265ebe14f44b 100644 --- a/lib/libc/locale/mskanji.c +++ b/lib/libc/locale/mskanji.c @@ -76,7 +76,7 @@ int _MSKanji_mbsinit(const mbstate_t *ps) { - return (ps == NULL || ((_MSKanjiState *)ps)->count == 0); + return (ps == NULL || ((const _MSKanjiState *)ps)->count == 0); } size_t diff --git a/lib/libc/locale/utf2.c b/lib/libc/locale/utf2.c index af7cc2f9ff28..85e79d69a69c 100644 --- a/lib/libc/locale/utf2.c +++ b/lib/libc/locale/utf2.c @@ -77,7 +77,7 @@ int _UTF2_mbsinit(const mbstate_t *ps) { - return (ps == NULL || ((_UTF2State *)ps)->count == 0); + return (ps == NULL || ((const _UTF2State *)ps)->count == 0); } size_t diff --git a/lib/libc/locale/utf8.c b/lib/libc/locale/utf8.c index 113cdafd77b7..2bb6bb252c3d 100644 --- a/lib/libc/locale/utf8.c +++ b/lib/libc/locale/utf8.c @@ -65,7 +65,7 @@ int _UTF8_mbsinit(const mbstate_t *ps) { - return (ps == NULL || ((_UTF8State *)ps)->count == 0); + return (ps == NULL || ((const _UTF8State *)ps)->count == 0); } size_t |