commit | 5a48d3065f529c9935cc48d77963fe59691de533 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Tue Sep 30 13:29:57 2014 -0600 |
committer | Mohamad Ayyash <mkayyash@google.com> | Fri Mar 06 17:57:20 2015 -0800 |
tree | 6438de6ea6b744c26963309b6dee2e4d5da8c487 | |
parent | a22867a5305f5cba020d6825793de9b9aaca1ca8 [diff] [blame] |
Constify 'td' in a few functions Signed-off-by: Jens Axboe <axboe@fb.com>
diff --git a/fio.h b/fio.h index 136b430..f981739 100644 --- a/fio.h +++ b/fio.h
@@ -406,7 +406,7 @@ extern struct thread_data *threads; -static inline void fio_ro_check(struct thread_data *td, struct io_u *io_u) +static inline void fio_ro_check(const struct thread_data *td, struct io_u *io_u) { assert(!(io_u->ddir == DDIR_WRITE && !td_write(td))); }