mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
Don't cast away const qualifiers.
Spotted by: bde
This commit is contained in:
parent
6490c2ffab
commit
fa02ee78c8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=128081
@ -78,7 +78,7 @@ int
|
|||||||
_BIG5_mbsinit(const mbstate_t *ps)
|
_BIG5_mbsinit(const mbstate_t *ps)
|
||||||
{
|
{
|
||||||
|
|
||||||
return (ps == NULL || ((_BIG5State *)ps)->count == 0);
|
return (ps == NULL || ((const _BIG5State *)ps)->count == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline int
|
static __inline int
|
||||||
|
@ -126,7 +126,7 @@ int
|
|||||||
_EUC_mbsinit(const mbstate_t *ps)
|
_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))
|
#define CEI ((_EucInfo *)(_CurrentRuneLocale->variable))
|
||||||
|
@ -71,7 +71,7 @@ int
|
|||||||
_GB18030_mbsinit(const mbstate_t *ps)
|
_GB18030_mbsinit(const mbstate_t *ps)
|
||||||
{
|
{
|
||||||
|
|
||||||
return (ps == NULL || ((_GB18030State *)ps)->count == 0);
|
return (ps == NULL || ((const _GB18030State *)ps)->count == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t
|
size_t
|
||||||
|
@ -65,7 +65,7 @@ int
|
|||||||
_GB2312_mbsinit(const mbstate_t *ps)
|
_GB2312_mbsinit(const mbstate_t *ps)
|
||||||
{
|
{
|
||||||
|
|
||||||
return (ps == NULL || ((_GB2312State *)ps)->count == 0);
|
return (ps == NULL || ((const _GB2312State *)ps)->count == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline int
|
static __inline int
|
||||||
|
@ -75,7 +75,7 @@ int
|
|||||||
_GBK_mbsinit(const mbstate_t *ps)
|
_GBK_mbsinit(const mbstate_t *ps)
|
||||||
{
|
{
|
||||||
|
|
||||||
return (ps == NULL || ((_GBKState *)ps)->count == 0);
|
return (ps == NULL || ((const _GBKState *)ps)->count == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline int
|
static __inline int
|
||||||
|
@ -76,7 +76,7 @@ int
|
|||||||
_MSKanji_mbsinit(const mbstate_t *ps)
|
_MSKanji_mbsinit(const mbstate_t *ps)
|
||||||
{
|
{
|
||||||
|
|
||||||
return (ps == NULL || ((_MSKanjiState *)ps)->count == 0);
|
return (ps == NULL || ((const _MSKanjiState *)ps)->count == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t
|
size_t
|
||||||
|
@ -77,7 +77,7 @@ int
|
|||||||
_UTF2_mbsinit(const mbstate_t *ps)
|
_UTF2_mbsinit(const mbstate_t *ps)
|
||||||
{
|
{
|
||||||
|
|
||||||
return (ps == NULL || ((_UTF2State *)ps)->count == 0);
|
return (ps == NULL || ((const _UTF2State *)ps)->count == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t
|
size_t
|
||||||
|
@ -65,7 +65,7 @@ int
|
|||||||
_UTF8_mbsinit(const mbstate_t *ps)
|
_UTF8_mbsinit(const mbstate_t *ps)
|
||||||
{
|
{
|
||||||
|
|
||||||
return (ps == NULL || ((_UTF8State *)ps)->count == 0);
|
return (ps == NULL || ((const _UTF8State *)ps)->count == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t
|
size_t
|
||||||
|
Loading…
Reference in New Issue
Block a user