fixed compiler warnings.
This commit is contained in:
@@ -213,9 +213,11 @@ void _awaitAndPrintChanges(GWEN_MSG_ENDPOINT *epTcp, int timeoutInSeconds, const
|
||||
}
|
||||
if (timeoutInSeconds) {
|
||||
time_t now;
|
||||
double delta;
|
||||
|
||||
now=time(NULL);
|
||||
if ((int)(difftime(now, tStart))>=timeoutInSeconds) {
|
||||
delta=difftime(now, tStart);
|
||||
if ((int)delta>=timeoutInSeconds) {
|
||||
DBG_INFO(NULL, "Timeout");
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user