mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-24 02:10:30 -05:00
Add semantic patch to keep UV_RUNTIME_CHECK in sync
The UV_RUNTIME_CHECK() macro requires to keep the function name in sync
like this:
r = func(...);
UV_RUNTIME_CHECK(func, r);
Add semantic patch to keep the function name and return variable in sync
with the previous line.
(cherry picked from commit 62bd5cb08c)
This commit is contained in:
parent
1c564b808f
commit
cdd725f1db
1 changed files with 8 additions and 0 deletions
8
cocci/UV_RUNTIME_CHECK.spatch
Normal file
8
cocci/UV_RUNTIME_CHECK.spatch
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
@@
|
||||
expression E;
|
||||
int R;
|
||||
@@
|
||||
|
||||
R = E(...);
|
||||
- UV_RUNTIME_CHECK(...);
|
||||
+ UV_RUNTIME_CHECK(E, R);
|
||||
Loading…
Reference in a new issue