mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2025-04-21 12:27:27 +03:00
libubb/physmem.c (physmem_xlat): make "v" "const"
Since we may use the buffer as well for reading only, there is no point in pretending physmem_xlat itself would try to write to it.
This commit is contained in:
@@ -130,7 +130,8 @@ static unsigned long xlat_one(int fd, unsigned long vaddr)
|
||||
}
|
||||
|
||||
|
||||
int physmem_xlat(void *v, size_t len, struct physmem_vec *vec, int vec_len)
|
||||
int physmem_xlat(const void *v, size_t len,
|
||||
struct physmem_vec *vec, int vec_len)
|
||||
{
|
||||
static int fd = -1;
|
||||
unsigned long vaddr = (unsigned long) v;
|
||||
|
||||
Reference in New Issue
Block a user