From d795dd76a623cb784197e73b73c9288e6fa47354 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Mon, 16 Nov 2020 17:58:01 +0100 Subject: [PATCH] bugfix for older compilers: have all declarations before instructions --- modules/libcom/test/osiSockTest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/libcom/test/osiSockTest.c b/modules/libcom/test/osiSockTest.c index 171022c9f..073a031ee 100644 --- a/modules/libcom/test/osiSockTest.c +++ b/modules/libcom/test/osiSockTest.c @@ -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;