mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
Add a semantic patch to change isc_stdtime_get() to isc_stdtime_now
Add a simple semantic patch to rewrite all uses of isc_stdtime_get(&t) to simpler t = isc_stdtime_now().
This commit is contained in:
parent
c11af0448a
commit
0ec8d7b6f3
6
cocci/isc_stdtime_now.spatch
Normal file
6
cocci/isc_stdtime_now.spatch
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
@@
|
||||||
|
expression t;
|
||||||
|
@@
|
||||||
|
|
||||||
|
- isc_stdtime_get(&t);
|
||||||
|
+ t = isc_stdtime_now();
|
Loading…
x
Reference in New Issue
Block a user