Commit d5c3e75b authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

nxcomp: fix shadow warning

Fixes this: CXX Loop.lo Loop.cpp: In function 'void handleCheckResultInLoop(int&, int&, int&, fd_set&, fd_set&, timeval&, timeval&)': Loop.cpp:14080:68: warning: declaration of 'startTs' shadows a global declaration [-Wshadow] struct timeval &startTs) ^ Loop.cpp:1020:13: note: shadowed declaration is here T_timestamp startTs; Fixes ArcticaProject/nx-libs#545
parent 29bb1231
......@@ -14079,9 +14079,9 @@ static void handleCheckSelectInLoop(int &setFDs, fd_set &readSet,
static void handleCheckResultInLoop(int &resultFDs, int &errorFDs, int &setFDs, fd_set &readSet,
fd_set &writeSet, struct timeval &selectTs,
struct timeval &startTs)
struct timeval &pstartTs)
{
int diffTs = diffTimestamp(startTs, getNewTimestamp());
int diffTs = diffTimestamp(pstartTs, getNewTimestamp());
if (diffTs >= (control -> PingTimeout -
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment