Fix some signed/unsigned comparison warnings in NFS

Reviewed by:	rmacklem
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D26533
This commit is contained in:
Alan Somers 2020-09-24 15:38:01 +00:00
parent dbe522e6ca
commit 5710395f4d

View File

@ -342,9 +342,9 @@ _acl_append(struct acl *aclp, acl_tag_t tag, acl_perm_t perm,
}
static struct acl_entry *
_acl_duplicate_entry(struct acl *aclp, int entry_index)
_acl_duplicate_entry(struct acl *aclp, unsigned entry_index)
{
int i;
unsigned i;
KASSERT(aclp->acl_cnt + 1 <= ACL_MAX_ENTRIES,
("aclp->acl_cnt + 1 <= ACL_MAX_ENTRIES"));
@ -361,7 +361,8 @@ static void
acl_nfs4_sync_acl_from_mode_draft(struct acl *aclp, mode_t mode,
int file_owner_id)
{
int i, meets, must_append;
int meets, must_append;
unsigned i;
struct acl_entry *entry, *copy, *previous,
*a1, *a2, *a3, *a4, *a5, *a6;
mode_t amode;