summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2015-06-17 23:11:10 -0400
committerirungentoo <irungentoo@gmail.com>2015-06-17 23:11:10 -0400
commitc13fb9a34dbf603c9dd7450bb34f83ac068465e8 (patch)
tree92eaef5ca0e9ddf0ecc64990ec19e30a98cbedf6 /toxcore
parent67df1ab7ce6b6cb8103ddf73df814f685240a59c (diff)
Fixed warning.
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/onion_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/onion_client.c b/toxcore/onion_client.c
index 90eea451..4f049fbc 100644
--- a/toxcore/onion_client.c
+++ b/toxcore/onion_client.c
@@ -219,7 +219,7 @@ static _Bool path_timed_out(Onion_Client_Paths *onion_paths, uint32_t pathnum)
219 */ 219 */
220static int random_path(const Onion_Client *onion_c, Onion_Client_Paths *onion_paths, uint32_t pathnum, Onion_Path *path) 220static int random_path(const Onion_Client *onion_c, Onion_Client_Paths *onion_paths, uint32_t pathnum, Onion_Path *path)
221{ 221{
222 if (pathnum == ~0) { 222 if (pathnum == UINT32_MAX) {
223 pathnum = rand() % NUMBER_ONION_PATHS; 223 pathnum = rand() % NUMBER_ONION_PATHS;
224 } else { 224 } else {
225 pathnum = pathnum % NUMBER_ONION_PATHS; 225 pathnum = pathnum % NUMBER_ONION_PATHS;