mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-21 01:15:23 -04:00
Add spatch for isc_one_or_more and isc_zero_or_more
This commit is contained in:
parent
5843289550
commit
d92369cc8f
1 changed files with 24 additions and 0 deletions
24
cocci/isc_x_tobuffer.spatch
Normal file
24
cocci/isc_x_tobuffer.spatch
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
@@
|
||||
expression E1, E2;
|
||||
@@
|
||||
isc_base64_tobuffer
|
||||
-(E1, E2, -1)
|
||||
+(E1, E2, isc_zero_or_more)
|
||||
@@
|
||||
expression E1, E2;
|
||||
@@
|
||||
isc_base64_tobuffer
|
||||
-(E1, E2, -2)
|
||||
+(E1, E2, isc_one_or_more)
|
||||
@@
|
||||
expression E1, E2;
|
||||
@@
|
||||
isc_hex_tobuffer
|
||||
-(E1, E2, -1)
|
||||
+(E1, E2, isc_zero_or_more)
|
||||
@@
|
||||
expression E1, E2;
|
||||
@@
|
||||
isc_hex_tobuffer
|
||||
-(E1, E2, -2)
|
||||
+(E1, E2, isc_one_or_more)
|
||||
Loading…
Reference in a new issue