bugfix for older compilers: have all declarations before instructions

This commit is contained in:
2020-11-16 17:58:01 +01:00
parent 45924d28e0
commit d795dd76a6

View File

@@ -213,6 +213,7 @@ void udpSockFanoutTestRx(void* raw)
{
struct TInfo *info = raw;
epicsTimeStamp start, now;
unsigned nremain = nrepeat;
#ifdef _WIN32
/* ms */
DWORD timeout = 10000;
@@ -222,7 +223,6 @@ void udpSockFanoutTestRx(void* raw)
timeout.tv_sec = 10;
timeout.tv_usec = 0;
#endif
unsigned nremain = nrepeat;
(void)epicsTimeGetCurrent(&start);
now = start;