fix timer_delete call
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
cf671670a0
commit
1bf446a33e
@ -70,7 +70,7 @@ extern "C" {
|
|||||||
evp: *mut libc::sigevent,
|
evp: *mut libc::sigevent,
|
||||||
timer: *mut TimerT,
|
timer: *mut TimerT,
|
||||||
) -> c_int;
|
) -> c_int;
|
||||||
fn timer_delete(timer: *const TimerT) -> c_int;
|
fn timer_delete(timer: TimerT) -> c_int;
|
||||||
fn timer_settime(
|
fn timer_settime(
|
||||||
timerid: TimerT,
|
timerid: TimerT,
|
||||||
flags: c_int,
|
flags: c_int,
|
||||||
@ -208,7 +208,7 @@ impl Timer {
|
|||||||
impl Drop for Timer {
|
impl Drop for Timer {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
unsafe {
|
unsafe {
|
||||||
timer_delete(&self.timer);
|
timer_delete(self.timer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user