Commit e49be9bc authored by Christian Göttsche's avatar Christian Göttsche Committed by Paul Moore
Browse files

selinux: use unsigned iterator in nlmsgtab code



Use an unsigned type as loop iterator.

Signed-off-by: default avatarChristian Göttsche <cgzones@googlemail.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent dee15375
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -153,7 +153,8 @@ static const struct nlmsg_perm nlmsg_audit_perms[] = {

static int nlmsg_perm(u16 nlmsg_type, u32 *perm, const struct nlmsg_perm *tab, size_t tabsize)
{
	int i, err = -EINVAL;
	unsigned int i;
	int err = -EINVAL;

	for (i = 0; i < tabsize/sizeof(struct nlmsg_perm); i++)
		if (nlmsg_type == tab[i].nlmsg_type) {