bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 11/29] device/cirbuf.c (cb_free): use vm_size_t instead of an int


From: Marin Ramesa
Subject: [PATCH 11/29] device/cirbuf.c (cb_free): use vm_size_t instead of an int
Date: Mon, 9 Dec 2013 23:57:26 +0100

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.

---
 device/cirbuf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/device/cirbuf.c b/device/cirbuf.c
index 374af34..e43c6e1 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);
-- 
1.8.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]