summaryrefslogtreecommitdiff
path: root/device
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-12-09 23:57:26 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-10 00:45:11 +0100
commit25140ed6e982b49329f202ba06ea2a488cd30f6b (patch)
tree6130ff5b589d8ab17c64e6f960c5f785f350245c /device
parent8a3e30669d914581c47554b2a0325cafee147712 (diff)
device/cirbuf.c (cb_free): use vm_size_t instead of an int
This is more in line with the call to kfree() in cb_free(). * device/cirbuf.c (cb_free) (size): Use vm_size_t instead of an int.
Diffstat (limited to 'device')
-rw-r--r--device/cirbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/device/cirbuf.c b/device/cirbuf.c
index 39b1da2..dfb06df 100644
--- a/device/cirbuf.c
+++ b/device/cirbuf.c
@@ -292,7 +292,7 @@ cb_alloc(
void
cb_free(struct cirbuf *cb)
{
- int size;
+ vm_size_t size;
size = cb->c_end - cb->c_start;
kfree((vm_offset_t)cb->c_start, size);