2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-22 01:59:26 +00:00
bind/cocci/isc_stdtime_now.spatch
Ondřej Surý 0ec8d7b6f3
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().
2023-03-31 13:16:28 +02:00

7 lines
69 B
Plaintext

@@
expression t;
@@
- isc_stdtime_get(&t);
+ t = isc_stdtime_now();