summaryrefslogtreecommitdiffstats
path: root/mbbsd/vice.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-08 11:28:20 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-06-08 11:28:20 +0800
commita8cf565dba1c16207d35c147ff876853126b9b8d (patch)
treef2d367e722d784e91552fc5a6a2c48219aea0fa6 /mbbsd/vice.c
parenta0f8ef1e2e04905908478088fc376435b770417c (diff)
downloadpttbbs-a8cf565dba1c16207d35c147ff876853126b9b8d.tar
pttbbs-a8cf565dba1c16207d35c147ff876853126b9b8d.tar.gz
pttbbs-a8cf565dba1c16207d35c147ff876853126b9b8d.tar.bz2
pttbbs-a8cf565dba1c16207d35c147ff876853126b9b8d.tar.lz
pttbbs-a8cf565dba1c16207d35c147ff876853126b9b8d.tar.xz
pttbbs-a8cf565dba1c16207d35c147ff876853126b9b8d.tar.zst
pttbbs-a8cf565dba1c16207d35c147ff876853126b9b8d.zip
eliminate warning messages
and make rawmode in edit.c more suitable for dbcs aware mode git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2797 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/vice.c')
-rw-r--r--mbbsd/vice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/vice.c b/mbbsd/vice.c
index 3f69e440..14e4e8f4 100644
--- a/mbbsd/vice.c
+++ b/mbbsd/vice.c
@@ -54,7 +54,7 @@ ran_showfile(int y, int x, const char *filename, int maxnum)
char buf[512];
bzero(buf, sizeof(buf));
- snprintf(buf, sizeof(buf), "%s%d", filename, random() % maxnum + 1);
+ snprintf(buf, sizeof(buf), "%s%d", filename, (int)(random() % maxnum + 1));
if (!(fs = fopen(buf, "r"))) {
move(10, 10);
prints("can't open file: %s", buf);
@@ -74,7 +74,7 @@ ran_showmfile(const char *filename, int maxnum)
{
char buf[256];
- snprintf(buf, sizeof(buf), "%s%d", filename, random() % maxnum + 1);
+ snprintf(buf, sizeof(buf), "%s%d", filename, (int)(random() % maxnum + 1));
return more(buf, YEA);
}