summaryrefslogtreecommitdiff
path: root/src/cgtop
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-11-25 23:55:30 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-12-02 12:06:07 +0100
commit5f5b61220341b3c803fafb9522e3536ce43708cf (patch)
tree1f8c12882f108e1d5ad50875bba4f19634ef17a9 /src/cgtop
parentfb8d181e5918f3d2dc38cb9d6f64aac9ce2e6367 (diff)
downloadsystemd-5f5b61220341b3c803fafb9522e3536ce43708cf.tar.gz
cgtop: use SWAP_TWO() macro
Diffstat (limited to 'src/cgtop')
-rw-r--r--src/cgtop/cgtop.c6
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;