summaryrefslogtreecommitdiff
path: root/src/cgtop
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-09-08 11:58:29 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-09-08 12:14:05 +0200
commit90e74a66e663f1776457d599cb7d5ce44785a56c (patch)
tree16ce28594b8dc475e37df9a3b80accb96e748efa /src/cgtop
parent12375b95ddcb7dbbcbc5969b87822d39115d8acf (diff)
downloadsystemd-90e74a66e663f1776457d599cb7d5ce44785a56c.tar.gz
tree-wide: define iterator inside of the macro
Diffstat (limited to 'src/cgtop')
-rw-r--r--src/cgtop/cgtop.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c
index e6c09d1b38..042d83c495 100644
--- a/src/cgtop/cgtop.c
+++ b/src/cgtop/cgtop.c
@@ -582,7 +582,6 @@ static int group_compare(Group * const *a, Group * const *b) {
}
static void display(Hashmap *a) {
- Iterator i;
Group *g;
Group **array;
signed path_columns;
@@ -596,7 +595,7 @@ static void display(Hashmap *a) {
array = newa(Group*, hashmap_size(a));
- HASHMAP_FOREACH(g, a, i)
+ HASHMAP_FOREACH(g, a)
if (g->n_tasks_valid || g->cpu_valid || g->memory_valid || g->io_valid)
array[n++] = g;