selinux: use identical iterator type in hashtab_duplicate()
authorChristian Göttsche <cgzones@googlemail.com>
Fri, 28 Jul 2023 15:54:53 +0000 (17:54 +0200)
committerPaul Moore <paul@paul-moore.com>
Fri, 4 Aug 2023 02:19:56 +0000 (22:19 -0400)
Use the identical type u32 for the loop iterator.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
[PM: remove extra whitespace in subject]
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/hashtab.c

index e3747b5..ac5cddd 100644 (file)
@@ -138,7 +138,8 @@ int hashtab_duplicate(struct hashtab *new, struct hashtab *orig,
                void *args)
 {
        struct hashtab_node *cur, *tmp, *tail;
-       int i, rc;
+       u32 i;
+       int rc;
 
        memset(new, 0, sizeof(*new));