summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-01-08 21:47:28 +0800
committerscw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-01-08 21:47:28 +0800
commit834d572d1c3adc23d7a950d77e0432f4d55e7bdf (patch)
treeb419646cfc42a5a4f935b447917034fea81c5641
parent043e54e5047410e38685ad402fc86418bf005f9a (diff)
downloadpttbbs-834d572d1c3adc23d7a950d77e0432f4d55e7bdf.tar
pttbbs-834d572d1c3adc23d7a950d77e0432f4d55e7bdf.tar.gz
pttbbs-834d572d1c3adc23d7a950d77e0432f4d55e7bdf.tar.bz2
pttbbs-834d572d1c3adc23d7a950d77e0432f4d55e7bdf.tar.lz
pttbbs-834d572d1c3adc23d7a950d77e0432f4d55e7bdf.tar.xz
pttbbs-834d572d1c3adc23d7a950d77e0432f4d55e7bdf.tar.zst
pttbbs-834d572d1c3adc23d7a950d77e0432f4d55e7bdf.zip
Make the prototype the same as in library.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1475 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--include/proto.h4
-rw-r--r--mbbsd/convert.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/proto.h b/include/proto.h
index 35e677c7..53b9c11f 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -283,8 +283,8 @@ int gb_read(int fd, void *buf, size_t count);
int utf8_write(int fd, void *buf, size_t count);
int utf8_read(int fd, void *buf, size_t count);
void set_converting_type(int which);
-unsigned char *gb2big(unsigned char *s, int plen);
-unsigned char *big2gb(unsigned char *s, int plen);
+unsigned char *gb2big(unsigned char *s, int* plen, int mod);
+unsigned char *big2gb(unsigned char *s, int* plen, int mod);
/* io */
int getdata(int line, int col, char *prompt, char *buf, int len, int echo);
diff --git a/mbbsd/convert.c b/mbbsd/convert.c
index 8a0d61b2..1dd90308 100644
--- a/mbbsd/convert.c
+++ b/mbbsd/convert.c
@@ -10,13 +10,13 @@ static int gb_read(int fd, void *buf, size_t count)
{
int len = read(fd, buf, count);
if (len > 0)
- gb2big((char *)buf, &len);
+ gb2big((char *)buf, &len, 0);
return len;
}
static int gb_write(int fd, void *buf, size_t count)
{
- big2gb((char *)buf, &count);
+ big2gb((char *)buf, &count, 0);
return write(fd, buf, count);
}