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:
parent
a56fe095f0
commit
0cef25aeb2
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user