summaryrefslogtreecommitdiff
path: root/librt/timer_delete.c
diff options
context:
space:
mode:
Diffstat (limited to 'librt/timer_delete.c')
-rw-r--r--librt/timer_delete.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/librt/timer_delete.c b/librt/timer_delete.c
index a85a51d9f..cc749df6b 100644
--- a/librt/timer_delete.c
+++ b/librt/timer_delete.c
@@ -17,17 +17,17 @@ static inline _syscall1(int, __syscall_timer_delete, kernel_timer_t, ktimerid);
/* Delete a per-process timer */
int timer_delete(timer_t timerid)
{
- int res;
- struct timer *kt = (struct timer *) timerid;
+ int res;
+ struct timer *kt = (struct timer *)timerid;
- /* Delete the kernel timer object */
- res = __syscall_timer_delete(kt->ktimerid);
- if (res == 0) {
- free(kt); /* Free the memory */
- return 0;
- }
+ /* Delete the kernel timer object */
+ res = __syscall_timer_delete(kt->ktimerid);
+ if (res == 0) {
+ free(kt); /* Free the memory */
+ return 0;
+ }
- return -1;
+ return -1;
}
#endif