diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-10-09 10:34:43 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-10-22 09:32:05 -0400 |
commit | b867e97ce6825e3d7f33a3c3dce8c65f11fe15ec (patch) | |
tree | 63b920408fb355c0cc5eb1f8d722cfacd7c2d104 /src/feature/dirauth/dirauth_periodic.c | |
parent | 48be9221609ceafa259db6f4c32cf947e9395e30 (diff) | |
download | tor-b867e97ce6825e3d7f33a3c3dce8c65f11fe15ec.tar.gz tor-b867e97ce6825e3d7f33a3c3dce8c65f11fe15ec.zip |
With COCCI defined, avoid PERIODIC_EVENT.
Coccinelle doesn't understand the particular pattern of token
pasting we have going on here.
Diffstat (limited to 'src/feature/dirauth/dirauth_periodic.c')
-rw-r--r-- | src/feature/dirauth/dirauth_periodic.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/feature/dirauth/dirauth_periodic.c b/src/feature/dirauth/dirauth_periodic.c index 02727d61b4..c02b9ac862 100644 --- a/src/feature/dirauth/dirauth_periodic.c +++ b/src/feature/dirauth/dirauth_periodic.c @@ -18,11 +18,13 @@ #include "core/mainloop/periodic.h" +#ifndef COCCI #define DECLARE_EVENT(name, roles, flags) \ static periodic_event_item_t name ## _event = \ PERIODIC_EVENT(name, \ PERIODIC_EVENT_ROLE_##roles, \ flags) +#endif #define FL(name) (PERIODIC_EVENT_FLAG_##name) |