diff options
Diffstat (limited to 'src/cgtop/cgtop.c')
-rw-r--r-- | src/cgtop/cgtop.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index 6a821ff38e..5abfab03de 100644 --- a/src/cgtop/cgtop.c +++ b/src/cgtop/cgtop.c @@ -943,7 +943,6 @@ static int run(int argc, char *argv[]) { arg_iterations = on_tty() ? 0 : 1; while (!quit) { - Hashmap *c; usec_t t; char key; char h[FORMAT_TIMESPAN_MAX]; @@ -957,10 +956,7 @@ static int run(int argc, char *argv[]) { return log_error_errno(r, "Failed to refresh: %m"); hashmap_clear(b); - - c = a; - a = b; - b = c; + SWAP_TWO(a, b); last_refresh = t; immediate_refresh = false; |