summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-06-11 16:06:32 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-06-11 16:06:32 +0800
commit06339dd4de0682da69813f9dfaa10a7fd46f7fd4 (patch)
tree6deb6061e7c87b0a6b10f0828b7540ceae6f84e5
parent1b3c384f4438e862d1b36d3dc9f202be641f1b7f (diff)
downloadpttbbs-06339dd4de0682da69813f9dfaa10a7fd46f7fd4.tar
pttbbs-06339dd4de0682da69813f9dfaa10a7fd46f7fd4.tar.gz
pttbbs-06339dd4de0682da69813f9dfaa10a7fd46f7fd4.tar.bz2
pttbbs-06339dd4de0682da69813f9dfaa10a7fd46f7fd4.tar.lz
pttbbs-06339dd4de0682da69813f9dfaa10a7fd46f7fd4.tar.xz
pttbbs-06339dd4de0682da69813f9dfaa10a7fd46f7fd4.tar.zst
pttbbs-06339dd4de0682da69813f9dfaa10a7fd46f7fd4.zip
warning free
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2059 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--include/proto.h3
-rw-r--r--mbbsd/board.c2
-rw-r--r--mbbsd/cal.c2
3 files changed, 6 insertions, 1 deletions
diff --git a/include/proto.h b/include/proto.h
index 8d44e14c..13bbd834 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -396,6 +396,9 @@ void stamplink(char *fpath, fileheader_t *fh);
int delete_record(char fpath[], int size, int id);
int delete_files(char* dirname, int (*filecheck)(), int record);
#ifdef SAFE_ARTICLE_DELETE
+#ifndef _BBS_UTIL_C_
+void safe_delete_range(char *fpath, int id1, int id2);
+#endif
int safe_article_delete(int ent, fileheader_t *fhdr, char *direct);
int safe_article_delete_range(char *direct, int from, int to);
#endif
diff --git a/mbbsd/board.c b/mbbsd/board.c
index 0a93dde2..fb69c8f1 100644
--- a/mbbsd/board.c
+++ b/mbbsd/board.c
@@ -171,12 +171,14 @@ addnewbrdstat(int n, int state)
return ptr;
}
+#if !HOTBOARDCACHE
static int
cmpboardfriends(const void *brd, const void *tmp)
{
return ((B_BH((boardstat_t*)tmp)->nuser) -
(B_BH((boardstat_t*)brd)->nuser));
}
+#endif
static void
load_boards(char *key)
diff --git a/mbbsd/cal.c b/mbbsd/cal.c
index 34e9de57..7e24c2df 100644
--- a/mbbsd/cal.c
+++ b/mbbsd/cal.c
@@ -426,7 +426,7 @@ p_sysinfo(void)
ru.ru_utime.tv_sec, ru.ru_utime.tv_usec,
ru.ru_stime.tv_sec, ru.ru_stime.tv_usec);
#ifdef CPULIMIT
- prints(" (limit %d secs)", CPULIMIT * 60);
+ prints(" (limit %d secs)", (int)(CPULIMIT * 60));
#endif
outs("\n¯S§O°Ñ¼Æ:"
#ifdef CRITICAL_MEMORY