summaryrefslogtreecommitdiff
path: root/other/bootstrap_daemon/src/tox-bootstrapd.c
diff options
context:
space:
mode:
Diffstat (limited to 'other/bootstrap_daemon/src/tox-bootstrapd.c')
-rw-r--r--other/bootstrap_daemon/src/tox-bootstrapd.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/other/bootstrap_daemon/src/tox-bootstrapd.c b/other/bootstrap_daemon/src/tox-bootstrapd.c
index 8ffef009..45b7add0 100644
--- a/other/bootstrap_daemon/src/tox-bootstrapd.c
+++ b/other/bootstrap_daemon/src/tox-bootstrapd.c
@@ -22,11 +22,6 @@
22 */ 22 */
23 23
24// system provided 24// system provided
25#include <arpa/inet.h>
26#include <getopt.h>
27#include <syslog.h>
28#include <sys/stat.h>
29#include <sys/types.h>
30#include <unistd.h> 25#include <unistd.h>
31 26
32// C 27// C
@@ -34,11 +29,6 @@
34#include <stdlib.h> 29#include <stdlib.h>
35#include <string.h> 30#include <string.h>
36 31
37// ./configure
38#ifdef HAVE_CONFIG_H
39#include "config.h"
40#endif
41
42// toxcore 32// toxcore
43#include "../../toxcore/LAN_discovery.h" 33#include "../../toxcore/LAN_discovery.h"
44#include "../../toxcore/onion_announce.h" 34#include "../../toxcore/onion_announce.h"
@@ -47,16 +37,13 @@
47 37
48// misc 38// misc
49#include "../bootstrap_node_packets.h" 39#include "../bootstrap_node_packets.h"
50#include "../../testing/misc_tools.c"
51 40
52#include "command_line_arguments.h" 41#include "command_line_arguments.h"
53#include "config.h" 42#include "config.h"
54#include "global.h" 43#include "global.h"
55#include "log.h" 44#include "log.h"
56 45
57 46#define SLEEP_MILLISECONDS(MS) usleep(1000*MS)
58#define SLEEP_TIME_MILLISECONDS 30
59#define sleep usleep(1000*SLEEP_TIME_MILLISECONDS)
60 47
61// Uses the already existing key or creates one if it didn't exist 48// Uses the already existing key or creates one if it didn't exist
62// 49//
@@ -346,7 +333,7 @@ int main(int argc, char *argv[])
346 waiting_for_dht_connection = 0; 333 waiting_for_dht_connection = 0;
347 } 334 }
348 335
349 sleep; 336 SLEEP_MILLISECONDS(30);
350 } 337 }
351 338
352 return 1; 339 return 1;