Fixed warning.

This commit is contained in:
irungentoo 2015-06-17 23:11:10 -04:00
parent 67df1ab7ce
commit c13fb9a34d
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -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;