summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_sglist.c2
-rw-r--r--sys/sys/sglist.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_sglist.c b/sys/kern/subr_sglist.c
index 7f551d9..474f676 100644
--- a/sys/kern/subr_sglist.c
+++ b/sys/kern/subr_sglist.c
@@ -315,7 +315,7 @@ sglist_append_uio(struct sglist *sg, struct uio *uio)
* segments, then only the amount that fits is appended.
*/
int
-sglist_consume_uio(struct sglist *sg, struct uio *uio, int resid)
+sglist_consume_uio(struct sglist *sg, struct uio *uio, size_t resid)
{
struct iovec *iov;
size_t done;
diff --git a/sys/sys/sglist.h b/sys/sys/sglist.h
index a1854d8..7c17baa 100644
--- a/sys/sys/sglist.h
+++ b/sys/sys/sglist.h
@@ -91,7 +91,7 @@ int sglist_append_user(struct sglist *sg, void *buf, size_t len,
struct thread *td);
struct sglist *sglist_build(void *buf, size_t len, int mflags);
struct sglist *sglist_clone(struct sglist *sg, int mflags);
-int sglist_consume_uio(struct sglist *sg, struct uio *uio, int resid);
+int sglist_consume_uio(struct sglist *sg, struct uio *uio, size_t resid);
int sglist_count(void *buf, size_t len);
void sglist_free(struct sglist *sg);
int sglist_join(struct sglist *first, struct sglist *second);
OpenPOWER on IntegriCloud