Rename list_* function and file to flist_ to avoid conflict with FreeBSD
[fio.git] / verify.c
index 0bb348ff996995750cc797eca653f5567160e980..680e49105480b6f76fecff85876ffd097eca18a7 100644 (file)
--- a/verify.c
+++ b/verify.c
@@ -112,7 +112,7 @@ static void hexdump(void *buffer, int len)
  */
 static inline unsigned int __hdr_size(int verify_type)
 {
-       unsigned int len;
+       unsigned int len = len;
 
        switch (verify_type) {
        case VERIFY_NONE:
@@ -639,9 +639,9 @@ int get_next_verify(struct thread_data *td, struct io_u *io_u)
 
                ipo = rb_entry(n, struct io_piece, rb_node);
                rb_erase(n, &td->io_hist_tree);
-       } else if (!list_empty(&td->io_hist_list)) {
-               ipo = list_entry(td->io_hist_list.next, struct io_piece, list);
-               list_del(&ipo->list);
+       } else if (!flist_empty(&td->io_hist_list)) {
+               ipo = flist_entry(td->io_hist_list.next, struct io_piece, list);
+               flist_del(&ipo->list);
        }
 
        if (ipo) {