From 06339dd4de0682da69813f9dfaa10a7fd46f7fd4 Mon Sep 17 00:00:00 2001 From: in2 Date: Fri, 11 Jun 2004 08:06:32 +0000 Subject: warning free git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2059 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/board.c | 2 ++ mbbsd/cal.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'mbbsd') 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 -- cgit v1.2.3