diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-11-26 19:10:26 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-11-26 22:17:34 +0100 |
commit | 020b39497a2a9f6699e984aa473753486d76e01d (patch) | |
tree | f2f8d72bf06f348f2c1269e78bf8a2708b017108 /coccinelle/swap-two.cocci | |
parent | test-network: add tests for #5430 and GatewayOnLink= (diff) | |
download | systemd-020b39497a2a9f6699e984aa473753486d76e01d.tar.xz systemd-020b39497a2a9f6699e984aa473753486d76e01d.zip |
tree-wide: use SWAP_TWO a bit more
Diffstat (limited to 'coccinelle/swap-two.cocci')
-rw-r--r-- | coccinelle/swap-two.cocci | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/coccinelle/swap-two.cocci b/coccinelle/swap-two.cocci new file mode 100644 index 0000000000..edf7d32403 --- /dev/null +++ b/coccinelle/swap-two.cocci @@ -0,0 +1,7 @@ +@@ +expression x, y, z; +@@ +- z = x; +- x = y; +- y = z; ++ SWAP_TWO(x, y); |