diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-25 23:55:30 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-12-02 12:06:07 +0100 |
commit | 5f5b61220341b3c803fafb9522e3536ce43708cf (patch) | |
tree | 1f8c12882f108e1d5ad50875bba4f19634ef17a9 /src | |
parent | fb8d181e5918f3d2dc38cb9d6f64aac9ce2e6367 (diff) | |
download | systemd-5f5b61220341b3c803fafb9522e3536ce43708cf.tar.gz |
cgtop: use SWAP_TWO() macro
Diffstat (limited to 'src')
-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; |