git: 4c2ef8c1d72b - main - pipe: change pipemapping cnt/pos to u_int
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 17 Aug 2022 14:23:49 UTC
The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=4c2ef8c1d72b6b822aefdd54c6ea9bc65b5d457e commit 4c2ef8c1d72b6b822aefdd54c6ea9bc65b5d457e Author: Mateusz Guzik <mjg@FreeBSD.org> AuthorDate: 2022-08-17 14:20:09 +0000 Commit: Mateusz Guzik <mjg@FreeBSD.org> CommitDate: 2022-08-17 14:20:09 +0000 pipe: change pipemapping cnt/pos to u_int This matches the case using regular buffers and avoids an ifdef later. Suggested by: markj --- sys/sys/pipe.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sys/pipe.h b/sys/sys/pipe.h index c9f222ffb01a..4580e1e2726d 100644 --- a/sys/sys/pipe.h +++ b/sys/sys/pipe.h @@ -74,8 +74,8 @@ struct pipebuf { * Information to support direct transfers between processes for pipes. */ struct pipemapping { - vm_size_t cnt; /* number of chars in buffer */ - vm_size_t pos; /* current position of transfer */ + u_int cnt; /* number of chars in buffer */ + u_int pos; /* current position of transfer */ int npages; /* number of pages */ vm_page_t ms[PIPENPAGES]; /* pages in source process */ };