1
0
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:
Tim J. Robbins 2004-04-10 00:27:52 +00:00
parent 6490c2ffab
commit fa02ee78c8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=128081
8 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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))

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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