mirror of
https://git.proxmox.com/git/mirror_frr
synced 2026-01-03 19:26:39 +00:00
tools: Coccinelle script to convert 0/1 to false/true if variable type is bool
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
This commit is contained in:
parent
286bbbecb0
commit
a5f6e69b14
13
scripts/coccinelle/bool_assignment.cocci
Normal file
13
scripts/coccinelle/bool_assignment.cocci
Normal file
@ -0,0 +1,13 @@
|
||||
@@
|
||||
bool b;
|
||||
@@
|
||||
|
||||
(
|
||||
b =
|
||||
- 0
|
||||
+ false
|
||||
|
|
||||
b =
|
||||
- 1
|
||||
+ true
|
||||
)
|
||||
Loading…
Reference in New Issue
Block a user