diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-25 13:33:25 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-25 13:33:25 +0800 |
commit | f1d0503c4fd4f103c10c6b609e7e078a586bf6ab (patch) | |
tree | 9a546b99209a6822bb648c757adc75972f7f1b59 /mbbsd/convert.c | |
parent | bbb6b692de2cc853deff9702aa95fe323beb2fd8 (diff) | |
download | pttbbs-f1d0503c4fd4f103c10c6b609e7e078a586bf6ab.tar pttbbs-f1d0503c4fd4f103c10c6b609e7e078a586bf6ab.tar.gz pttbbs-f1d0503c4fd4f103c10c6b609e7e078a586bf6ab.tar.bz2 pttbbs-f1d0503c4fd4f103c10c6b609e7e078a586bf6ab.tar.lz pttbbs-f1d0503c4fd4f103c10c6b609e7e078a586bf6ab.tar.xz pttbbs-f1d0503c4fd4f103c10c6b609e7e078a586bf6ab.tar.zst pttbbs-f1d0503c4fd4f103c10c6b609e7e078a586bf6ab.zip |
eliminate compiler warnings (mostly signed/unsigned)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3082 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/convert.c')
-rw-r--r-- | mbbsd/convert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/convert.c b/mbbsd/convert.c index 85fc9eff..ae178f8c 100644 --- a/mbbsd/convert.c +++ b/mbbsd/convert.c @@ -32,7 +32,7 @@ static ssize_t gb_write(int fd, void *buf, size_t count) { int icount = (int)count; - big2gb((char *)buf, &icount, 0); + big2gb((unsigned char *)buf, &icount, 0); if(icount > 0) return write(fd, buf, (size_t)icount); else @@ -62,7 +62,7 @@ static ssize_t utf8_write(int fd, void *buf, size_t count) { int icount = (int)count; - static char *mybuf = NULL; + static unsigned char *mybuf = NULL; static int cmybuf = 0; /* utf8 output is a special case because |