mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
iov: add const annotation
iov_from_buf does not change iov, make it const. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
40bad8f3de
commit
844b5cea8e
2 changed files with 2 additions and 2 deletions
2
iov.c
2
iov.c
|
@ -26,7 +26,7 @@
|
|||
# include <sys/socket.h>
|
||||
#endif
|
||||
|
||||
size_t iov_from_buf(struct iovec *iov, unsigned int iov_cnt,
|
||||
size_t iov_from_buf(const struct iovec *iov, unsigned int iov_cnt,
|
||||
size_t offset, const void *buf, size_t bytes)
|
||||
{
|
||||
size_t done;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue