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

@ -199,7 +199,7 @@ int vfs_readdir(dirent_t *dir, struct dir_context *ctx, dirent_t **out)
return 0;
}
ssize_t vfs_write(inode_t *ino, char *buf, size_t size, size_t offset)
ssize_t vfs_write(inode_t *ino, const char *buf, size_t size, size_t offset)
{
if (!ino)
return -EINVAL;