diff options
author | Diadlo <polsha3@gmail.com> | 2017-03-03 21:30:11 +0300 |
---|---|---|
committer | Diadlo <polsha3@gmail.com> | 2017-03-25 20:40:34 +0300 |
commit | 50c526e1a5349bd69ce29dda703e914fb755ccf4 (patch) | |
tree | 52321368957f105c5db3e86fdbf7b6c47e848f7e /testing/DHT_test.c | |
parent | a1f9df48d61ccc34e35bf98c3c61ec7861e8e1b6 (diff) |
Move c_sleep to helpers.h and misc_tools.h
Also fix a mistake with forgotten braces around parameter
Diffstat (limited to 'testing/DHT_test.c')
-rw-r--r-- | testing/DHT_test.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/testing/DHT_test.c b/testing/DHT_test.c index 536217fe..6e65bf3a 100644 --- a/testing/DHT_test.c +++ b/testing/DHT_test.c | |||
@@ -41,16 +41,8 @@ | |||
41 | 41 | ||
42 | #include <string.h> | 42 | #include <string.h> |
43 | 43 | ||
44 | //Sleep function (x = milliseconds) | 44 | #if !defined(_WIN32) && !defined(__WIN32__) && !defined (WIN32) |
45 | #if defined(_WIN32) || defined(__WIN32__) || defined (WIN32) | ||
46 | |||
47 | #define c_sleep(x) Sleep(1*x) | ||
48 | |||
49 | #else | ||
50 | #include <arpa/inet.h> | 45 | #include <arpa/inet.h> |
51 | #include <unistd.h> | ||
52 | #define c_sleep(x) usleep(1000*x) | ||
53 | |||
54 | #endif | 46 | #endif |
55 | 47 | ||
56 | #define PORT 33445 | 48 | #define PORT 33445 |