svn commit: r366118 - head/sys/kern
Alan Somers
asomers at FreeBSD.org
Thu Sep 24 15:38:02 UTC 2020
Author: asomers
Date: Thu Sep 24 15:38:01 2020
New Revision: 366118
URL: https://svnweb.freebsd.org/changeset/base/366118
Log:
Fix some signed/unsigned comparison warnings in NFS
Reviewed by: rmacklem
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D26533
Modified:
head/sys/kern/subr_acl_nfs4.c
Modified: head/sys/kern/subr_acl_nfs4.c
==============================================================================
--- head/sys/kern/subr_acl_nfs4.c Thu Sep 24 15:34:47 2020 (r366117)
+++ head/sys/kern/subr_acl_nfs4.c Thu Sep 24 15:38:01 2020 (r366118)
@@ -342,9 +342,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"));
@@ -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;
More information about the svn-src-head
mailing list