diff options
author | redwire <redwire@riseup.net> | 2013-08-30 22:08:15 -0230 |
---|---|---|
committer | redwire <redwire@riseup.net> | 2013-08-30 22:08:15 -0230 |
commit | ecddafd3832d145f2d7bdb84bb83ba385ff3cff0 (patch) | |
tree | 3767263413c28b3dd35d11d6a1508e79c5f4a09a /toxcore/DHT.c | |
parent | 4247eec9698dce1bf82d17e4713a54bad080baca (diff) |
Made clang happy by taking definitions for the macro out of functions and adding declarations
Diffstat (limited to 'toxcore/DHT.c')
-rw-r--r-- | toxcore/DHT.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/DHT.c b/toxcore/DHT.c index 307b1e33..02e0ed08 100644 --- a/toxcore/DHT.c +++ b/toxcore/DHT.c | |||
@@ -56,6 +56,8 @@ | |||
56 | #define NAT_PING_REQUEST 0 | 56 | #define NAT_PING_REQUEST 0 |
57 | #define NAT_PING_RESPONSE 1 | 57 | #define NAT_PING_RESPONSE 1 |
58 | 58 | ||
59 | /* Create the quicksort function. See misc_tools.h for the definition. */ | ||
60 | make_quick_sort(ClientPair); | ||
59 | 61 | ||
60 | Client_data *DHT_get_close_list(DHT *dht) | 62 | Client_data *DHT_get_close_list(DHT *dht) |
61 | { | 63 | { |
@@ -299,8 +301,6 @@ static void sort_list(Client_data *list, uint32_t length, uint8_t *comp_client_i | |||
299 | ClientPair pairs[length]; | 301 | ClientPair pairs[length]; |
300 | uint32_t i; | 302 | uint32_t i; |
301 | 303 | ||
302 | /* Create the quicksort function. See misc_tools.h for the definition. */ | ||
303 | make_quick_sort(ClientPair); | ||
304 | memcpy(cd.client_id, comp_client_id, CLIENT_ID_SIZE); | 304 | memcpy(cd.client_id, comp_client_id, CLIENT_ID_SIZE); |
305 | for (i = 0; i < length; ++i) { | 305 | for (i = 0; i < length; ++i) { |
306 | pairs[i].c1 = cd; | 306 | pairs[i].c1 = cd; |