summaryrefslogtreecommitdiff
path: root/btt/trace_queue.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2012-02-01 13:17:57 +0100
committerJens Axboe <axboe@kernel.dk>2012-02-01 13:17:57 +0100
commitf6d38abde41a7b18808dcdab393f05d6300d16c3 (patch)
treecb68e66c73f3ded1f73d966eb90da322ee4a91ab /btt/trace_queue.c
parentd324757e0f2cfc87ddcc2fea7e59d81cc8661f1c (diff)
downloadblktrace-f6d38abde41a7b18808dcdab393f05d6300d16c3.tar.gz
blktrace-f6d38abde41a7b18808dcdab393f05d6300d16c3.tar.bz2
Fix compiler warnings
One was a real bug, assigned i_time twice instead of c_time (which was left unitialized). Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'btt/trace_queue.c')
-rw-r--r--btt/trace_queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/btt/trace_queue.c b/btt/trace_queue.c
index 82c5760..8edcd90 100644
--- a/btt/trace_queue.c
+++ b/btt/trace_queue.c
@@ -33,7 +33,7 @@ static void handle_queue(struct io *q_iop)
update_lq(&last_q, &all_avgs.q2q, q_iop->t.time);
}
- q_iop->i_time = q_iop->g_time = q_iop->i_time = q_iop->m_time =
+ q_iop->i_time = q_iop->g_time = q_iop->c_time = q_iop->m_time =
q_iop->d_time = (__u64)-1;
q_iop->dip->n_qs++;