Skip to content

Commit c14f97f

Browse files
Nicholas Lowellkartben
authored andcommitted
posix: device_io: mark pwrite() buf as const
match standard by having input void *buf parameter for pwrite() marked as const, and avoid any potential declaration conflicts Signed-off-by: Nicholas Lowell <Nicholas.Lowell@lexmark.com>
1 parent e60070d commit c14f97f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/posix/options/device_io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ int pselect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
9999
return zvfs_select(nfds, readfds, writefds, exceptfds, timeout, sigmask);
100100
}
101101

102-
ssize_t pwrite(int fd, void *buf, size_t count, off_t offset)
102+
ssize_t pwrite(int fd, const void *buf, size_t count, off_t offset)
103103
{
104104
size_t off = (size_t)offset;
105105

0 commit comments

Comments
 (0)