use true/false for bool type
authorTomohiro Kusumi <tkusumi@tuxera.com>
Fri, 2 Jun 2017 19:21:26 +0000 (22:21 +0300)
committerJens Axboe <axboe@fb.com>
Fri, 2 Jun 2017 19:38:31 +0000 (13:38 -0600)
Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
init.c

diff --git a/init.c b/init.c
index d224bd6f9d88ba1f8316e3e8d2c22cc0ea7fcc7a..2b7768ab8ce1f6d57e0e82eaf46854b993abbda5 100644 (file)
--- a/init.c
+++ b/init.c
@@ -909,9 +909,9 @@ void td_fill_verify_state_seed(struct thread_data *td)
        bool use64;
 
        if (td->o.random_generator == FIO_RAND_GEN_TAUSWORTHE64)
-               use64 = 1;
+               use64 = true;
        else
-               use64 = 0;
+               use64 = false;
 
        init_rand_seed(&td->verify_state, td->rand_seeds[FIO_RAND_VER_OFF],
                use64);
@@ -967,9 +967,9 @@ void td_fill_rand_seeds(struct thread_data *td)
        }
 
        if (td->o.random_generator == FIO_RAND_GEN_TAUSWORTHE64)
-               use64 = 1;
+               use64 = true;
        else
-               use64 = 0;
+               use64 = false;
 
        td_fill_rand_seeds_internal(td, use64);