summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2012-12-28 10:56:16 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2012-12-28 10:56:16 +0800
commitf841191ac33d4a0fcb125569748b2949339430c1 (patch)
tree52c180b8af5c802857a1e20cd846296018408d13
parent63765ca068a266115f445cdd7f5eaebad368dee0 (diff)
downloadpttbbs-f841191ac33d4a0fcb125569748b2949339430c1.tar
pttbbs-f841191ac33d4a0fcb125569748b2949339430c1.tar.gz
pttbbs-f841191ac33d4a0fcb125569748b2949339430c1.tar.bz2
pttbbs-f841191ac33d4a0fcb125569748b2949339430c1.tar.lz
pttbbs-f841191ac33d4a0fcb125569748b2949339430c1.tar.xz
pttbbs-f841191ac33d4a0fcb125569748b2949339430c1.tar.zst
pttbbs-f841191ac33d4a0fcb125569748b2949339430c1.zip
Fix warnings
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5746 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/daemon/logind/logind.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pttbbs/daemon/logind/logind.c b/pttbbs/daemon/logind/logind.c
index 0274c9e9..6680a151 100644
--- a/pttbbs/daemon/logind/logind.c
+++ b/pttbbs/daemon/logind/logind.c
@@ -565,7 +565,7 @@ _telnet_write_data_cb(void *write_arg, int fd GCC_UNUSED,
#ifdef LOGIND_OPENFD_IN_AYT
static void
-_telnet_send_ayt_cb(void *ayt_arg, int fd)
+_telnet_send_ayt_cb(void *ayt_arg, int fd GCC_UNUSED)
{
login_conn_ctx *conn = (login_conn_ctx *)ayt_arg;
char buf[64];
@@ -1055,7 +1055,7 @@ regular_check()
{
// cache results
static time_t last_check_time = 0;
- time_t now = time(0);
+ time4_t now = time(0);
if ( now - last_check_time < LOGIND_REGULAR_CHECK_DURATION)
return;