diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c index 2517b2bc2d4..cc140d28e13 100644 --- a/sys/kern/kern_prot.c +++ b/sys/kern/kern_prot.c @@ -2365,7 +2365,7 @@ crunuse(struct thread *td) } static void -crunusebatch(struct ucred *cr, int users, int ref) +crunusebatch(struct ucred *cr, u_int users, long ref) { KASSERT(users > 0, ("%s: passed users %d not > 0 ; cred %p", diff --git a/sys/sys/ucred.h b/sys/sys/ucred.h index 32fa942493a..7d04ea7de97 100644 --- a/sys/sys/ucred.h +++ b/sys/sys/ucred.h @@ -192,8 +192,8 @@ struct proc; struct credbatch { struct ucred *cred; - int users; - int ref; + u_int users; + long ref; }; static inline void