From 4c2ef8c1d72b6b822aefdd54c6ea9bc65b5d457e Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Wed, 17 Aug 2022 14:20:09 +0000 Subject: [PATCH] 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 */ };