mirror_lxc/coccinelle/while-true.cocci
Christian Brauner 51a8a74c07
coccinelle: s/while({1,true})/for(;;)/
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2019-02-09 11:05:12 +01:00

13 lines
91 B
Plaintext

@@
statement s;
@@
- while (true)
+ for (;;)
s
@@
statement s;
@@
- while (1)
+ for (;;)
s