fs: make buf on write const

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-19 20:33:52 -04:00
commit 171ea49050
5 changed files with 49 additions and 9 deletions

View file

@ -16,7 +16,7 @@ static ssize_t read(inode_t *inode, char *buf, size_t size, size_t offset)
return -ENOSYS;
}
static ssize_t write(inode_t *inode, char *buf, size_t size, size_t offset)
static ssize_t write(inode_t *inode, const char *buf, size_t size, size_t offset)
{
return -ENOSYS;
}