summaryrefslogtreecommitdiff
path: root/lib/igt.cocci
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2015-02-07 12:37:48 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-02-13 09:35:36 +0100
commit2eca38eab9ccb4bc41ceda4992614ffb311ce4f7 (patch)
tree711f29c0fdf4f2168d2c3ffd5ab8d07f5da7e478 /lib/igt.cocci
parent3e9b4e37e68da2b866e9cebf7ceb6624617e353b (diff)
lib/igt_aux: s/swap/igt_swap/
It collides with the subtest naming convention glossary entry for swap. Which makes the docbook xml stuff unhappy. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/igt.cocci')
-rw-r--r--lib/igt.cocci4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/igt.cocci b/lib/igt.cocci
index fd4ad256..41a8beb3 100644
--- a/lib/igt.cocci
+++ b/lib/igt.cocci
@@ -92,7 +92,7 @@ expression E;
- assert(E);
+ igt_assert(E);
-// Replace open-coded swap()
+// Replace open-coded igt_swap()
@@
type T;
T a, b, tmp;
@@ -100,7 +100,7 @@ T a, b, tmp;
- tmp = a;
- a = b;
- b = tmp;
-+ swap(a, b);
++ igt_swap(a, b);
// Replace open-coded min()
@@