From 4f65e023e3fd06e352f8ec26482783059d4b6b82 Mon Sep 17 00:00:00 2001 From: ehouse Date: Wed, 2 Jan 2008 01:43:45 +0000 Subject: [PATCH] fix unused param warning --- linux/cursesmain.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/linux/cursesmain.c b/linux/cursesmain.c index 9dbecac8f..df914d613 100644 --- a/linux/cursesmain.c +++ b/linux/cursesmain.c @@ -704,11 +704,11 @@ curses_socket_acceptor( int listener, Acceptor func, CommonGlobals* cGlobals, cursesListenOnSocket( globals, listener ); } +#ifdef RELAY_HEARTBEAT static int figureTimeout( CursesAppGlobals* globals ) { int result = INFINITE_TIMEOUT; -#ifdef RELAY_HEARTBEAT if ( globals->cGlobals.timerProcs[TIMER_HEARTBEAT] != 0 ) { XP_U32 now = util_getCurSeconds( globals->cGlobals.params->util ); XP_U32 then = globals->nextTimer; @@ -718,9 +718,11 @@ figureTimeout( CursesAppGlobals* globals ) result = (then - now) * 1000; } } -#endif return result; } /* figureTimeout */ +#else +# define figureTimeout(g) INFINITE_TIMEOUT +#endif /* * Ok, so this doesn't block yet....