From 1bf446a33e6f312f2956283a41634255be28d2a6 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 30 Jan 2019 12:03:40 +0100 Subject: [PATCH] fix timer_delete call Signed-off-by: Wolfgang Bumiller --- src/tools/timer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/timer.rs b/src/tools/timer.rs index 2601884a..8130dcce 100644 --- a/src/tools/timer.rs +++ b/src/tools/timer.rs @@ -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); } } }