Skip to content

Commit 8dfff97

Browse files
Nicholas LowellNicholas Lowell
Nicholas Lowell
authored and
Nicholas Lowell
committed
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 <[email protected]>
1 parent 613efa4 commit 8dfff97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/posix/options/device_io.c

+1-1
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)