X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=fio.c;h=28be099ab71d432174e1fd1560afd1bf4e596c00;hp=5432e383d439319eb918b3dd4162c2df774b0337;hb=7313b48c3196b4750f4103e8622126039e2231c6;hpb=e5b401d4bf67a1704f28872d3abe09eaf65cdabe diff --git a/fio.c b/fio.c index 5432e383..28be099a 100644 --- a/fio.c +++ b/fio.c @@ -277,7 +277,7 @@ static int get_rw_ddir(struct thread_data *td) * Check if it's time to seed a new data direction. */ if (elapsed >= td->rwmixcycle) { - int v; + unsigned int v; long r; r = os_random_long(&td->rwmix_state); @@ -422,7 +422,7 @@ static inline void td_set_runstate(struct thread_data *td, int runstate) static struct fio_file *get_next_file(struct thread_data *td) { - int old_next_file = td->next_file; + unsigned int old_next_file = td->next_file; struct fio_file *f; do {