mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +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:
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();
|
Reference in New Issue
Block a user