From 6d9b069d2336ad94f5a02f9d98d510971288af6f Mon Sep 17 00:00:00 2001 From: Michael Heimpold Date: Fri, 26 Sep 2014 22:29:08 +0200 Subject: [PATCH] unit-test-client: fix compilation on compilers not supporting c99 mode --- tests/unit-test-client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit-test-client.c b/tests/unit-test-client.c index 7521787..af2bb98 100644 --- a/tests/unit-test-client.c +++ b/tests/unit-test-client.c @@ -744,8 +744,9 @@ int send_crafted_request(modbus_t *ctx, int function, { const int EXCEPTION_RC = 2; uint8_t rsp[MODBUS_TCP_MAX_ADU_LENGTH]; + int j; - for (int j=0; j<2; j++) { + for (j=0; j<2; j++) { int rc; req[1] = function; -- libgit2 0.21.4