mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
fix unused param warning
This commit is contained in:
parent
3e05965b93
commit
4f65e023e3
1 changed files with 4 additions and 2 deletions
|
@ -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....
|
||||
|
|
Loading…
Reference in a new issue