From: Yu Watanabe Date: Sun, 25 Nov 2018 14:55:30 +0000 (+0900) Subject: cgtop: use SWAP_TWO() macro X-Git-Tag: v240~151^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f5b61220341b3c803fafb9522e3536ce43708cf;p=thirdparty%2Fsystemd.git cgtop: use SWAP_TWO() macro --- diff --git a/src/cgtop/cgtop.c b/src/cgtop/cgtop.c index 6a821ff38e7..5abfab03de5 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;