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 /other/DHT_bootstrap.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 'other/DHT_bootstrap.c')
-rw-r--r-- | other/DHT_bootstrap.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/other/DHT_bootstrap.c b/other/DHT_bootstrap.c index f4dd5a65..78139de0 100644 --- a/other/DHT_bootstrap.c +++ b/other/DHT_bootstrap.c | |||
@@ -50,15 +50,6 @@ | |||
50 | #define DHT_MOTD "This is a test motd" | 50 | #define DHT_MOTD "This is a test motd" |
51 | #endif | 51 | #endif |
52 | 52 | ||
53 | /* Sleep function (x = milliseconds) */ | ||
54 | #if defined(_WIN32) || defined(__WIN32__) || defined (WIN32) | ||
55 | #define c_sleep(x) Sleep(1*x) | ||
56 | #else | ||
57 | #include <arpa/inet.h> | ||
58 | #include <unistd.h> | ||
59 | #define c_sleep(x) usleep(1000*x) | ||
60 | #endif | ||
61 | |||
62 | #define PORT 33445 | 53 | #define PORT 33445 |
63 | 54 | ||
64 | 55 | ||