summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-08-20 19:23:58 +0000
committerjhb <jhb@FreeBSD.org>2009-08-20 19:23:58 +0000
commitbb1c942f116ca63b21e3cf4cdc47a62dc47ee664 (patch)
treeba39013d1af76bd1673ad6017209cfbb1e1cf738
parent9b0755de9f1e9517732f96a37f0ef30b8db23811 (diff)
downloadFreeBSD-src-bb1c942f116ca63b21e3cf4cdc47a62dc47ee664.zip
FreeBSD-src-bb1c942f116ca63b21e3cf4cdc47a62dc47ee664.tar.gz
Change the 'resid' parameter to sglist_consume_uio() from an int to a
size_t to match the recent type change of the uio_resid member of struct uio. Approved by: re (kib)
-rw-r--r--share/man/man9/sglist.92
-rw-r--r--sys/kern/subr_sglist.c2
-rw-r--r--sys/sys/sglist.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/share/man/man9/sglist.9 b/share/man/man9/sglist.9
index 8c1c046..a265498 100644
--- a/share/man/man9/sglist.9
+++ b/share/man/man9/sglist.9
@@ -70,7 +70,7 @@
.Ft struct sglist *
.Fn sglist_clone "struct sglist *sg" "int mflags"
.Ft int
-.Fn sglist_consume_uio "struct sglist *sg" "struct uio *uio" "int resid"
+.Fn sglist_consume_uio "struct sglist *sg" "struct uio *uio" "size_t resid"
.Ft int
.Fn sglist_count "void *buf" "size_t len"
.Ft void
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