[PATCH] blktrace: signedness fixes
authorJens Axboe <axboe@suse.de>
Wed, 18 Jan 2006 14:00:05 +0000 (15:00 +0100)
committerJens Axboe <axboe@suse.de>
Wed, 18 Jan 2006 14:00:05 +0000 (15:00 +0100)
blktrace.c

index fa080718f97be6271ee49461423008ac7887e102..48b89a6ceb138c3c4b571347dceeed826119f54b 100644 (file)
@@ -339,7 +339,7 @@ static int resize_ringbuffer(struct thread_information *tip)
        return 0;
 }
 
-static int __refill_ringbuffer(struct thread_information *tip, unsigned int len,
+static int __refill_ringbuffer(struct thread_information *tip, int len,
                               int block)
 {
        unsigned long off;
@@ -378,7 +378,8 @@ static void refill_ringbuffer(struct thread_information *tip, int block)
        } while ((ret = len) && !is_done());
 }
 
-static int read_data(struct thread_information *tip, void *buf, int len)
+static int read_data(struct thread_information *tip, void *buf,
+                    unsigned int len)
 {
        unsigned int start_size, end_size;