summaryrefslogtreecommitdiff
path: root/auto_tests/TCP_test.c
diff options
context:
space:
mode:
authorDiadlo <polsha3@gmail.com>2017-03-03 21:30:11 +0300
committerDiadlo <polsha3@gmail.com>2017-03-25 20:40:34 +0300
commit50c526e1a5349bd69ce29dda703e914fb755ccf4 (patch)
tree52321368957f105c5db3e86fdbf7b6c47e848f7e /auto_tests/TCP_test.c
parenta1f9df48d61ccc34e35bf98c3c61ec7861e8e1b6 (diff)
Move c_sleep to helpers.h and misc_tools.h
Also fix a mistake with forgotten braces around parameter
Diffstat (limited to 'auto_tests/TCP_test.c')
-rw-r--r--auto_tests/TCP_test.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/auto_tests/TCP_test.c b/auto_tests/TCP_test.c
index bc684af9..769ba5de 100644
--- a/auto_tests/TCP_test.c
+++ b/auto_tests/TCP_test.c
@@ -18,13 +18,6 @@
18 18
19#include "helpers.h" 19#include "helpers.h"
20 20
21#if defined(_WIN32) || defined(__WIN32__) || defined (WIN32)
22#define c_sleep(x) Sleep(1*x)
23#else
24#include <unistd.h>
25#define c_sleep(x) usleep(1000*x)
26#endif
27
28#define NUM_PORTS 3 21#define NUM_PORTS 3
29 22
30static uint16_t ports[NUM_PORTS] = {1234, 33445, 25643}; 23static uint16_t ports[NUM_PORTS] = {1234, 33445, 25643};