summaryrefslogtreecommitdiffstats
path: root/mbbsd/friend.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-01-01 01:40:52 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-01-01 01:40:52 +0800
commitce591a73e5bafcf08b93da768b8c76c5e824f599 (patch)
tree416921f99fdfb349e7f0a6655cae28e1e87d67c7 /mbbsd/friend.c
parent5507859f58d2a4dd6ff14f441c5c0f51ed4c5928 (diff)
downloadpttbbs-ce591a73e5bafcf08b93da768b8c76c5e824f599.tar
pttbbs-ce591a73e5bafcf08b93da768b8c76c5e824f599.tar.gz
pttbbs-ce591a73e5bafcf08b93da768b8c76c5e824f599.tar.bz2
pttbbs-ce591a73e5bafcf08b93da768b8c76c5e824f599.tar.lz
pttbbs-ce591a73e5bafcf08b93da768b8c76c5e824f599.tar.xz
pttbbs-ce591a73e5bafcf08b93da768b8c76c5e824f599.tar.zst
pttbbs-ce591a73e5bafcf08b93da768b8c76c5e824f599.zip
make gcc33 happy
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@592 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/friend.c')
-rw-r--r--mbbsd/friend.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/friend.c b/mbbsd/friend.c
index 6becc8f9..15a00c50 100644
--- a/mbbsd/friend.c
+++ b/mbbsd/friend.c
@@ -1,4 +1,4 @@
-/* $Id: friend.c,v 1.13 2002/07/27 17:23:09 kcwu Exp $ */
+/* $Id: friend.c,v 1.14 2002/12/31 17:40:51 in2 Exp $ */
#include "bbs.h"
/* ------------------------------------- */
@@ -56,7 +56,7 @@ setfriendfile(char *fpath, int type)
setbfile(fpath, currboard, friend_file[type]);
}
-static int
+static unsigned int
friend_count(char *fname)
{
FILE *fp;
@@ -185,7 +185,7 @@ friend_append(int type, int count)
setfriendfile(sfile, j);
if ((fp = fopen(sfile, "r")) != NULL) {
- while (fgets(buf, 80, fp) && count <= friend_max[type]) {
+ while (fgets(buf, 80, fp) && (unsigned)count <= friend_max[type]) {
char the_id[15];
sscanf(buf, "%s", the_id);