mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Add spatch for isc_one_or_more and isc_zero_or_more
(cherry picked from commit d92369cc8f)
This commit is contained in:
parent
5bb645a24c
commit
37e03b004e
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