summaryrefslogtreecommitdiffstats
path: root/mbbsd/convert.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-25 13:41:46 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-08-25 13:41:46 +0800
commitaf0bba7f92b2be1a15dab738935cd988278e13aa (patch)
tree999ebb65aca4340fa831c7d60655e18030e839ab /mbbsd/convert.c
parentf1d0503c4fd4f103c10c6b609e7e078a586bf6ab (diff)
downloadpttbbs-af0bba7f92b2be1a15dab738935cd988278e13aa.tar
pttbbs-af0bba7f92b2be1a15dab738935cd988278e13aa.tar.gz
pttbbs-af0bba7f92b2be1a15dab738935cd988278e13aa.tar.bz2
pttbbs-af0bba7f92b2be1a15dab738935cd988278e13aa.tar.lz
pttbbs-af0bba7f92b2be1a15dab738935cd988278e13aa.tar.xz
pttbbs-af0bba7f92b2be1a15dab738935cd988278e13aa.tar.zst
pttbbs-af0bba7f92b2be1a15dab738935cd988278e13aa.zip
eliminate more compiler warnings
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3083 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/convert.c')
-rw-r--r--mbbsd/convert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/convert.c b/mbbsd/convert.c
index ae178f8c..6a102230 100644
--- a/mbbsd/convert.c
+++ b/mbbsd/convert.c
@@ -15,7 +15,7 @@ gb_input(void *buf, ssize_t icount)
{
/* is sizeof(ssize_t) == sizeof(int)? not sure */
int ic = (int) icount;
- gb2big((char *)buf, &ic, 0);
+ gb2big((unsigned char *)buf, &ic, 0);
return (ssize_t)ic;
}
@@ -73,7 +73,7 @@ utf8_write(int fd, void *buf, size_t count)
if(cmybuf < count * 4) {
cmybuf = (count*4+0x80) & (~0x7f) ;
- mybuf = (char*) realloc (mybuf, cmybuf);
+ mybuf = (unsigned char*) realloc (mybuf, cmybuf);
}
memcpy(mybuf, buf, count);
big2uni(mybuf, &icount, 0);