svn commit: r368087 - stable/12/sys/kern
Alan Somers
asomers at FreeBSD.org
Thu Nov 26 23:44:58 UTC 2020
Author: asomers
Date: Thu Nov 26 23:44:57 2020
New Revision: 368087
URL: https://svnweb.freebsd.org/changeset/base/368087
Log:
MFC r366118:
Fix some signed/unsigned comparison warnings in NFS
Reviewed by: rmacklem
Differential Revision: https://reviews.freebsd.org/D26533
Modified:
stable/12/sys/kern/subr_acl_nfs4.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/kern/subr_acl_nfs4.c
==============================================================================
--- stable/12/sys/kern/subr_acl_nfs4.c Thu Nov 26 23:35:13 2020 (r368086)
+++ stable/12/sys/kern/subr_acl_nfs4.c Thu Nov 26 23:44:57 2020 (r368087)
@@ -349,9 +349,9 @@ _acl_append(struct acl *aclp, acl_tag_t tag, acl_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"));
@@ -368,7 +368,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;
More information about the svn-src-stable-12
mailing list