diff options
Diffstat (limited to 'other')
-rw-r--r-- | other/DHT_bootstrap.c | 2 | ||||
-rw-r--r-- | other/bootstrap_daemon/src/tox-bootstrapd.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/other/DHT_bootstrap.c b/other/DHT_bootstrap.c index b67dd100..8ea4c161 100644 --- a/other/DHT_bootstrap.c +++ b/other/DHT_bootstrap.c | |||
@@ -60,7 +60,7 @@ | |||
60 | 60 | ||
61 | void manage_keys(DHT *dht) | 61 | void manage_keys(DHT *dht) |
62 | { | 62 | { |
63 | const uint32_t KEYS_SIZE = crypto_box_PUBLICKEYBYTES + crypto_box_SECRETKEYBYTES; | 63 | enum { KEYS_SIZE = crypto_box_PUBLICKEYBYTES + crypto_box_SECRETKEYBYTES }; |
64 | uint8_t keys[KEYS_SIZE]; | 64 | uint8_t keys[KEYS_SIZE]; |
65 | 65 | ||
66 | FILE *keys_file = fopen("key", "r"); | 66 | FILE *keys_file = fopen("key", "r"); |
diff --git a/other/bootstrap_daemon/src/tox-bootstrapd.c b/other/bootstrap_daemon/src/tox-bootstrapd.c index 2ae60f76..06ea45aa 100644 --- a/other/bootstrap_daemon/src/tox-bootstrapd.c +++ b/other/bootstrap_daemon/src/tox-bootstrapd.c | |||
@@ -50,12 +50,12 @@ | |||
50 | 50 | ||
51 | // Uses the already existing key or creates one if it didn't exist | 51 | // Uses the already existing key or creates one if it didn't exist |
52 | // | 52 | // |
53 | // retirns 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 | int manage_keys(DHT *dht, char *keys_file_path) |
57 | { | 57 | { |
58 | const uint32_t 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]; |
60 | FILE *keys_file; | 60 | FILE *keys_file; |
61 | 61 | ||