mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +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 );
|
cursesListenOnSocket( globals, listener );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef RELAY_HEARTBEAT
|
||||||
static int
|
static int
|
||||||
figureTimeout( CursesAppGlobals* globals )
|
figureTimeout( CursesAppGlobals* globals )
|
||||||
{
|
{
|
||||||
int result = INFINITE_TIMEOUT;
|
int result = INFINITE_TIMEOUT;
|
||||||
#ifdef RELAY_HEARTBEAT
|
|
||||||
if ( globals->cGlobals.timerProcs[TIMER_HEARTBEAT] != 0 ) {
|
if ( globals->cGlobals.timerProcs[TIMER_HEARTBEAT] != 0 ) {
|
||||||
XP_U32 now = util_getCurSeconds( globals->cGlobals.params->util );
|
XP_U32 now = util_getCurSeconds( globals->cGlobals.params->util );
|
||||||
XP_U32 then = globals->nextTimer;
|
XP_U32 then = globals->nextTimer;
|
||||||
|
@ -718,9 +718,11 @@ figureTimeout( CursesAppGlobals* globals )
|
||||||
result = (then - now) * 1000;
|
result = (then - now) * 1000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
return result;
|
return result;
|
||||||
} /* figureTimeout */
|
} /* figureTimeout */
|
||||||
|
#else
|
||||||
|
# define figureTimeout(g) INFINITE_TIMEOUT
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Ok, so this doesn't block yet....
|
* Ok, so this doesn't block yet....
|
||||||
|
|
Loading…
Reference in a new issue