diff options
author | zugz <mbays+tox@sdf.org> | 2017-02-11 15:21:06 +0100 |
---|---|---|
committer | zugz <mbays+tox@sdf.org> | 2017-02-11 15:27:48 +0100 |
commit | bbb979d6ef2299834cb38932a2d395eeaf119ff0 (patch) | |
tree | 7bb53229ae11b90fb01497c9e515b689573e9d31 /toxcore/DHT.c | |
parent | 6ae33c16cf9e37fda85d70c78b3c2779eb8ca21a (diff) |
remove statics used in onion comparison functions
Diffstat (limited to 'toxcore/DHT.c')
-rw-r--r-- | toxcore/DHT.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/DHT.c b/toxcore/DHT.c index 227c6175..dfd4d821 100644 --- a/toxcore/DHT.c +++ b/toxcore/DHT.c | |||
@@ -866,7 +866,7 @@ static unsigned int store_node_ok(const Client_data *client, const uint8_t *publ | |||
866 | static void sort_client_list(Client_data *list, unsigned int length, const uint8_t *comp_public_key) | 866 | static void sort_client_list(Client_data *list, unsigned int length, const uint8_t *comp_public_key) |
867 | { | 867 | { |
868 | // Pass comp_public_key to qsort with each Client_data entry, so the | 868 | // Pass comp_public_key to qsort with each Client_data entry, so the |
869 | // comparison function cmp_dht_entry can use it as the base of comparison. | 869 | // comparison function can use it as the base of comparison. |
870 | Cmp_data cmp_list[length]; | 870 | Cmp_data cmp_list[length]; |
871 | 871 | ||
872 | for (uint32_t i = 0; i < length; i++) { | 872 | for (uint32_t i = 0; i < length; i++) { |