rdma: adapt to new init_rand_seed()
[fio.git] / engines / rdma.c
index 81f167367e90df6f9e2dd439e2ddfdc41f7c08e1..c59d5dd6e2bf0ccf900a15a8d92a8142d0a8c2fd 100644 (file)
@@ -524,7 +524,7 @@ static struct io_u *fio_rdmaio_event(struct thread_data *td, int event)
 }
 
 static int fio_rdmaio_getevents(struct thread_data *td, unsigned int min,
-                               unsigned int max, struct timespec *t)
+                               unsigned int max, const struct timespec *t)
 {
        struct rdmaio_data *rd = td->io_ops->data;
        enum ibv_wc_opcode comp_opcode;
@@ -869,7 +869,7 @@ static int fio_rdmaio_close_file(struct thread_data *td, struct fio_file *f)
                        return 1;
                }
 
-               dprint(FD_IO, "fio: close infomation sent success\n");
+               dprint(FD_IO, "fio: close information sent success\n");
                rdma_poll_wait(td, IBV_WC_SEND);
        }
 
@@ -1202,7 +1202,7 @@ static int fio_rdmaio_setup(struct thread_data *td)
                rd = malloc(sizeof(*rd));
 
                memset(rd, 0, sizeof(*rd));
-               init_rand_seed(&rd->rand_state, (unsigned int) GOLDEN_RATIO_PRIME);
+               init_rand_seed(&rd->rand_state, (unsigned int) GOLDEN_RATIO_PRIME, 0);
                td->io_ops->data = rd;
        }