summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Woelders <kim@woelders.dk>2021-04-09 17:07:06 +0200
committerKim Woelders <kim@woelders.dk>2021-07-10 15:44:17 +0200
commit3c645829b478db24458b9ce393fe3e6a840c01fb (patch)
tree9749c6f5bd133cf749e75b0895cd2867eaf2ce76
parent240857af990a621d64eeaa1c15672a8a167520cf (diff)
downloadimlib2-3c645829b478db24458b9ce393fe3e6a840c01fb.tar.gz
Cleanups: while->for loops (loaders list)
-rw-r--r--src/lib/loaders.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/loaders.c b/src/lib/loaders.c
index aa8b3d6..ae10271 100644
--- a/src/lib/loaders.c
+++ b/src/lib/loaders.c
@@ -75,14 +75,12 @@ __imlib_ConsumeLoader(ImlibLoader * l)
void
__imlib_RemoveAllLoaders(void)
{
- ImlibLoader *l, *il;
+ ImlibLoader *l, *l_next;
- l = loaders;
- while (l)
+ for (l = loaders; l; l = l_next)
{
- il = l;
- l = l->next;
- __imlib_ConsumeLoader(il);
+ l_next = l->next;
+ __imlib_ConsumeLoader(l);
}
loaders = NULL;
}