diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-05-04 07:07:47 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-05-04 07:07:47 +0100 |
commit | 6d1b3de6fe3fdcc2deb7fcc3ebb1ba12aceb6893 (patch) | |
tree | c0fd68cd5ab72ab18bee1af331f70fa083e07a3c /contrib | |
parent | b84be53f907dba8aeab2bf2d9cb5b5b0d6d858fe (diff) | |
download | rspamd-6d1b3de6fe3fdcc2deb7fcc3ebb1ba12aceb6893.tar.gz rspamd-6d1b3de6fe3fdcc2deb7fcc3ebb1ba12aceb6893.zip |
[Minor] Fix spelling mistake
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/libev/ev.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/libev/ev.c b/contrib/libev/ev.c index 94c8b1016..591a8cc8e 100644 --- a/contrib/libev/ev.c +++ b/contrib/libev/ev.c @@ -1870,7 +1870,7 @@ static EV_ATOMIC_T have_realtime; /* did clock_gettime (CLOCK_REALTIME) work? */ #if EV_USE_MONOTONIC static EV_ATOMIC_T have_monotonic; /* did clock_gettime (CLOCK_MONOTONIC) work? */ -static EV_ATOMIC_T monotinic_clock_id; +static EV_ATOMIC_T monotonic_clock_id; #endif static EV_ATOMIC_T have_cheap_timer = 0; @@ -2201,7 +2201,7 @@ get_clock (void) if (ecb_expect_true (have_monotonic)) { struct timespec ts; - clock_gettime (monotinic_clock_id, &ts); + clock_gettime (monotonic_clock_id, &ts); return ((ev_tstamp)ts.tv_sec) + ts.tv_nsec * 1e-9; } #endif @@ -3279,12 +3279,12 @@ loop_init (EV_P_ unsigned int flags) EV_NOEXCEPT if (!clock_gettime (CLOCK_MONOTONIC, &ts)) { have_monotonic = 1; - monotinic_clock_id = CLOCK_MONOTONIC; + monotonic_clock_id = CLOCK_MONOTONIC; #define CHECK_CLOCK_SOURCE(id) do { \ if (!clock_gettime ((id), &ts) && \ !clock_getres ((id), &ts)) { \ if (ts.tv_sec == 0 && ts.tv_nsec < 10ULL * 1000000) { \ - monotinic_clock_id = (id); \ + monotonic_clock_id = (id); \ have_cheap_timer = 1; \ } \ } \ |