fix unused param warning

This commit is contained in:
ehouse 2008-01-02 01:43:45 +00:00
parent 3e05965b93
commit 4f65e023e3

View file

@ -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....