block: make write buf const
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
171ea49050
commit
be701fdd0b
3 changed files with 6 additions and 6 deletions
|
|
@ -80,7 +80,7 @@ ssize_t block_read(struct block_device *dev, char *buf, size_t offset, size_t n_
|
|||
return ret;
|
||||
}
|
||||
|
||||
ssize_t block_write(struct block_device *dev, char *buf, size_t offset, size_t n_blocks)
|
||||
ssize_t block_write(struct block_device *dev, const char *buf, size_t offset, size_t n_blocks)
|
||||
{
|
||||
while (dev->part_of) {
|
||||
offset += dev->lba_start;
|
||||
|
|
|
|||
Loading…
Reference in a new issue