diff options
Diffstat (limited to 'other/bootstrap_daemon/src/tox-bootstrapd.c')
-rw-r--r-- | other/bootstrap_daemon/src/tox-bootstrapd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/other/bootstrap_daemon/src/tox-bootstrapd.c b/other/bootstrap_daemon/src/tox-bootstrapd.c index 06ea45aa..fe360b4e 100644 --- a/other/bootstrap_daemon/src/tox-bootstrapd.c +++ b/other/bootstrap_daemon/src/tox-bootstrapd.c | |||
@@ -53,7 +53,7 @@ | |||
53 | // returns 1 on success | 53 | // returns 1 on success |
54 | // 0 on failure - no keys were read or stored | 54 | // 0 on failure - no keys were read or stored |
55 | 55 | ||
56 | int manage_keys(DHT *dht, char *keys_file_path) | 56 | static int manage_keys(DHT *dht, char *keys_file_path) |
57 | { | 57 | { |
58 | enum { KEYS_SIZE = crypto_box_PUBLICKEYBYTES + crypto_box_SECRETKEYBYTES }; | 58 | enum { KEYS_SIZE = crypto_box_PUBLICKEYBYTES + crypto_box_SECRETKEYBYTES }; |
59 | uint8_t keys[KEYS_SIZE]; | 59 | uint8_t keys[KEYS_SIZE]; |
@@ -98,7 +98,7 @@ int manage_keys(DHT *dht, char *keys_file_path) | |||
98 | 98 | ||
99 | // Prints public key | 99 | // Prints public key |
100 | 100 | ||
101 | void print_public_key(const uint8_t *public_key) | 101 | static void print_public_key(const uint8_t *public_key) |
102 | { | 102 | { |
103 | char buffer[2 * crypto_box_PUBLICKEYBYTES + 1]; | 103 | char buffer[2 * crypto_box_PUBLICKEYBYTES + 1]; |
104 | int index = 0; | 104 | int index = 0; |
@@ -115,7 +115,7 @@ void print_public_key(const uint8_t *public_key) | |||
115 | // Demonizes the process, appending PID to the PID file and closing file descriptors based on log backend | 115 | // Demonizes the process, appending PID to the PID file and closing file descriptors based on log backend |
116 | // Terminates the application if the daemonization fails. | 116 | // Terminates the application if the daemonization fails. |
117 | 117 | ||
118 | void daemonize(LOG_BACKEND log_backend, char *pid_file_path) | 118 | static void daemonize(LOG_BACKEND log_backend, char *pid_file_path) |
119 | { | 119 | { |
120 | // Check if the PID file exists | 120 | // Check if the PID file exists |
121 | FILE *pid_file; | 121 | FILE *pid_file; |