mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed warning.
This commit is contained in:
parent
67df1ab7ce
commit
c13fb9a34d
|
@ -219,7 +219,7 @@ static _Bool path_timed_out(Onion_Client_Paths *onion_paths, uint32_t pathnum)
|
||||||
*/
|
*/
|
||||||
static int random_path(const Onion_Client *onion_c, Onion_Client_Paths *onion_paths, uint32_t pathnum, Onion_Path *path)
|
static int random_path(const Onion_Client *onion_c, Onion_Client_Paths *onion_paths, uint32_t pathnum, Onion_Path *path)
|
||||||
{
|
{
|
||||||
if (pathnum == ~0) {
|
if (pathnum == UINT32_MAX) {
|
||||||
pathnum = rand() % NUMBER_ONION_PATHS;
|
pathnum = rand() % NUMBER_ONION_PATHS;
|
||||||
} else {
|
} else {
|
||||||
pathnum = pathnum % NUMBER_ONION_PATHS;
|
pathnum = pathnum % NUMBER_ONION_PATHS;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user