summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-04-10 00:27:52 +0000
committertjr <tjr@FreeBSD.org>2004-04-10 00:27:52 +0000
commit17077e5ae6a3c32d437e907200a241336105a539 (patch)
treef5d0e26237e059acebf353c9e2f2da825994f79d /lib
parent043ec21649d9c0e33013b9092b6ea700f0d15ab8 (diff)
downloadFreeBSD-src-17077e5ae6a3c32d437e907200a241336105a539.zip
FreeBSD-src-17077e5ae6a3c32d437e907200a241336105a539.tar.gz
Don't cast away const qualifiers.
Spotted by: bde
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/locale/big5.c2
-rw-r--r--lib/libc/locale/euc.c2
-rw-r--r--lib/libc/locale/gb18030.c2
-rw-r--r--lib/libc/locale/gb2312.c2
-rw-r--r--lib/libc/locale/gbk.c2
-rw-r--r--lib/libc/locale/mskanji.c2
-rw-r--r--lib/libc/locale/utf2.c2
-rw-r--r--lib/libc/locale/utf8.c2
8 files changed, 8 insertions, 8 deletions
diff --git a/lib/libc/locale/big5.c b/lib/libc/locale/big5.c
index ccf35f0..0dbf04d 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 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))
diff --git a/lib/libc/locale/gb18030.c b/lib/libc/locale/gb18030.c
index 817602b..ee895d5 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 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
diff --git a/lib/libc/locale/gbk.c b/lib/libc/locale/gbk.c
index 880884f..09b3aec 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 43bae6c..265ebe1 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 af7cc2f..85e79d6 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 113cdaf..2bb6bb2 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
OpenPOWER on IntegriCloud