]> granicus.if.org Git - shadow/commitdiff
* lib/groupio.c: Avoid implicit conversion from signed to unsigned.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 20 Aug 2010 20:35:52 +0000 (20:35 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 20 Aug 2010 20:35:52 +0000 (20:35 +0000)
ChangeLog
lib/groupio.c

index 31e2fee7618a384e5e1ea0e6414cce691bc2f7e8..5bcb5531936c864bf9908c643ff336e75db49b36 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-08-20  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * lib/groupio.c: Avoid implicit conversion from signed to unsigned.
+
 2010-08-20  Nicolas François  <nicolas.francois@centraliens.net>
 
        * lib/commonio.c: Make sure there are no NULL pointer dereference.
index 9ddca70c11435ca27c3935fd24ffc3b9bb3deb1d..1cf143fb443e1dc8773972c220f2e5e9af4da5bc 100644 (file)
@@ -382,16 +382,19 @@ static int split_groups (unsigned int max_members)
                struct commonio_entry *new;
                struct group *new_gptr;
                unsigned int members = 0;
-               int i;
+               unsigned int i;
 
                /* Check if this group must be split */
-               if (!gr->changed)
+               if (!gr->changed) {
                        continue;
-               if (NULL == gptr)
+               }
+               if (NULL == gptr) {
                        continue;
+               }
                for (members = 0; NULL != gptr->gr_mem[members]; members++);
-               if (members <= max_members)
+               if (members <= max_members) {
                        continue;
+               }
 
                new = (struct commonio_entry *) malloc (sizeof *new);
                if (NULL == new) {