fix timer_delete call

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-01-30 12:03:40 +01:00
parent cf671670a0
commit 1bf446a33e

View File

@ -70,7 +70,7 @@ extern "C" {
evp: *mut libc::sigevent,
timer: *mut TimerT,
) -> c_int;
fn timer_delete(timer: *const TimerT) -> c_int;
fn timer_delete(timer: TimerT) -> c_int;
fn timer_settime(
timerid: TimerT,
flags: c_int,
@ -208,7 +208,7 @@ impl Timer {
impl Drop for Timer {
fn drop(&mut self) {
unsafe {
timer_delete(&self.timer);
timer_delete(self.timer);
}
}
}