summaryrefslogtreecommitdiffstats
path: root/mbbsd/talk.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-07-30 14:54:40 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-07-30 14:54:40 +0800
commitc0c9d87226fcdd179335b6f7356499ce05219b09 (patch)
tree6fc81a1bab6ff112288402fcef31a9a3425a1e4c /mbbsd/talk.c
parent9c890899dc1ffab3a2ba67402c3dcb7b3e0e4f02 (diff)
downloadpttbbs-c0c9d87226fcdd179335b6f7356499ce05219b09.tar
pttbbs-c0c9d87226fcdd179335b6f7356499ce05219b09.tar.gz
pttbbs-c0c9d87226fcdd179335b6f7356499ce05219b09.tar.bz2
pttbbs-c0c9d87226fcdd179335b6f7356499ce05219b09.tar.lz
pttbbs-c0c9d87226fcdd179335b6f7356499ce05219b09.tar.xz
pttbbs-c0c9d87226fcdd179335b6f7356499ce05219b09.tar.zst
pttbbs-c0c9d87226fcdd179335b6f7356499ce05219b09.zip
use correct type: size_t/int/long/pointer
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2153 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r--mbbsd/talk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c
index 8edf5980..2ae1f5ed 100644
--- a/mbbsd/talk.c
+++ b/mbbsd/talk.c
@@ -384,7 +384,7 @@ my_query(char *uident)
prints("¡m¢×¢Ò¼ÊºÙ¡n%s(%s)%*s¡m¸gÀÙª¬ªp¡n%s",
muser.userid,
muser.username,
- 26 - strlen(muser.userid) - strlen(muser.username), "",
+ (int)(26 - strlen(muser.userid) - strlen(muser.username)), "",
money[i]);
if (uentp && ((fri_stat & HFM && !uentp->invisible) || strcmp(muser.userid,cuser.userid) == 0))
prints(" ($%d)", muser.money);
@@ -1567,9 +1567,9 @@ t_showhelp()
static char *
friend_descript(userinfo_t * uentp, char *desc_buf, int desc_buflen)
{
- char *space_buf = "";
+ char *space_buf = "", *flag;
char fpath[80], name[IDLEN + 2], *desc, *ptr;
- int len, flag;
+ int len;
FILE *fp;
char genbuf[STRLEN];
@@ -1584,7 +1584,7 @@ friend_descript(userinfo_t * uentp, char *desc_buf, int desc_buflen)
desc = genbuf + 13;
/* TODO maybe none linear search, or fread, or cache */
- while ((flag = (int)fgets(genbuf, STRLEN, fp))) {
+ while ((flag = fgets(genbuf, STRLEN, fp))) {
if (!memcmp(genbuf, name, len)) {
if ((ptr = strchr(desc, '\n')))
ptr[0] = '\0';