diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-15 21:38:24 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-22 10:57:29 +0100 |
commit | bb3a48e42835fdbb456fdf0d0f74050fa61ff7d5 (patch) | |
tree | 5ae2c5ea8e42018b388ecfbe60631108b952d74f /src/libutil/util.c | |
parent | a66237597ec9de929d4a323a7d9fa6e7d900eb87 (diff) | |
download | rspamd-bb3a48e42835fdbb456fdf0d0f74050fa61ff7d5.tar.gz rspamd-bb3a48e42835fdbb456fdf0d0f74050fa61ff7d5.zip |
[Project] Refactor more, use ev_stat for cdb watching
Diffstat (limited to 'src/libutil/util.c')
-rw-r--r-- | src/libutil/util.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c index c5fec19a7..665b6accb 100644 --- a/src/libutil/util.c +++ b/src/libutil/util.c @@ -2570,24 +2570,6 @@ rspamd_constant_memcmp (const guchar *a, const guchar *b, gsize len) return (((gint32)(guint16)((guint32)r + 0x8000) - 0x8000) == 0); } -#if !defined(LIBEVENT_VERSION_NUMBER) || LIBEVENT_VERSION_NUMBER < 0x02000000UL -struct ev_loop * -event_get_base (struct event *ev) -{ - return ev->ev_base; -} -#endif - -int -rspamd_event_pending (struct event *ev, short what) -{ - if (ev->ev_base == NULL) { - return 0; - } - - return event_pending (ev, what, NULL); -} - int rspamd_file_xopen (const char *fname, int oflags, guint mode, gboolean allow_symlink) |