summaryrefslogtreecommitdiff
path: root/librt/timer_delete.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-02-09 22:14:34 +0000
committerMike Frysinger <vapier@gentoo.org>2007-02-09 22:14:34 +0000
commit87ad91cafbef5c328ed83c7c5bf56df6a15cadcf (patch)
tree7d41edb274c31a27cf4e908f9480e09d36b69307 /librt/timer_delete.c
parent59b10970c522f8cee255a08b4faf93c8e3addd57 (diff)
run through Lindent
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