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)
This commit is contained in:
John Baldwin 2009-08-20 19:23:58 +00:00
parent a56fe095f0
commit 0cef25aeb2
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=196404
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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;

View File

@ -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);