mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Avoid a compilation warning on macOS in scheduler_ev_add()
This warning is caused by a different tv_usec data type on macOS compared to the system on which the patch was developed. Fixes 23575 on 0.3.2.1-alpha.
This commit is contained in:
parent
6afc924d7e
commit
e77ece3b31
4
changes/bug23575
Normal file
4
changes/bug23575
Normal file
@ -0,0 +1,4 @@
|
||||
o Minor bugfixes (scheduler):
|
||||
- Avoid a compilation warning on macOS in scheduler_ev_add() caused by
|
||||
a different tv_usec data type.
|
||||
Fixes 23575 on 0.3.2.1-alpha.
|
@ -508,7 +508,7 @@ scheduler_ev_add(const struct timeval *next_run)
|
||||
tor_assert(next_run);
|
||||
if (BUG(event_add(run_sched_ev, next_run) < 0)) {
|
||||
log_warn(LD_SCHED, "Adding to libevent failed. Next run time was set to: "
|
||||
"%ld.%06ld", next_run->tv_sec, next_run->tv_usec);
|
||||
"%ld.%06ld", next_run->tv_sec, (long)next_run->tv_usec);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user