kwo pushed a commit to branch master.

http://git.enlightenment.org/e16/e16.git/commit/?id=cc7fe7a2fb12b76446c266b035e52f127b0683d2

commit cc7fe7a2fb12b76446c266b035e52f127b0683d2
Author: Kim Woelders <[email protected]>
Date:   Sun May 3 21:05:21 2020 +0200

    groups.c: Mostly cosmetic tweaks
---
 src/groups.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/groups.c b/src/groups.c
index e303640f..d11d4a28 100644
--- a/src/groups.c
+++ b/src/groups.c
@@ -436,10 +436,7 @@ GroupsEwinAdd(EWin * ewin, const int *pgid, int ngid)
 void
 GroupsEwinRemove(EWin * ewin)
 {
-   int                 num, i;
-
-   num = ewin->num_groups;
-   for (i = 0; i < num; i++)
+   while (ewin->num_groups > 0)
       _GroupEwinRemove(ewin->groups[0], ewin);
 }
 

-- 


Reply via email to