aboutgitcodebugslistschat
path: root/iov.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-03-01 15:06:44 +1100
committerStefano Brivio <sbrivio@redhat.com>2024-03-07 23:09:15 +0100
commit137ce017896b2b64f8c45a8ddefbaed2cb71c445 (patch)
tree9f0814ae064b8ab6dae15f6af2b4b5f2d81d5721 /iov.h
parentbb11d1549544a9a7505f7fe699ad3949ada1d1d4 (diff)
downloadpasst-137ce017896b2b64f8c45a8ddefbaed2cb71c445.tar
passt-137ce017896b2b64f8c45a8ddefbaed2cb71c445.tar.gz
passt-137ce017896b2b64f8c45a8ddefbaed2cb71c445.tar.bz2
passt-137ce017896b2b64f8c45a8ddefbaed2cb71c445.tar.lz
passt-137ce017896b2b64f8c45a8ddefbaed2cb71c445.tar.xz
passt-137ce017896b2b64f8c45a8ddefbaed2cb71c445.tar.zst
passt-137ce017896b2b64f8c45a8ddefbaed2cb71c445.zip
iov: Improve documentation of iov_skip_bytes()
As pointed out in review, the documentation comments for iov_skip_bytes() are more confusing than they should be. Reword them, including updating parameter names, to make it clearer. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'iov.h')
-rw-r--r--iov.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/iov.h b/iov.h
index e1becde..6058af7 100644
--- a/iov.h
+++ b/iov.h
@@ -19,7 +19,7 @@
#include <string.h>
size_t iov_skip_bytes(const struct iovec *iov, size_t n,
- size_t vec_offset, size_t *buf_offset);
+ size_t skip, size_t *offset);
size_t iov_from_buf(const struct iovec *iov, size_t iov_cnt,
size_t offset, const void *buf, size_t bytes);
size_t iov_to_buf(const struct iovec *iov, size_t iov_cnt,