From 68aae7362e48a637794503215b836bd08f85d5f3 Mon Sep 17 00:00:00 2001 From: brarcher Date: Mon, 26 May 2014 21:03:06 +0000 Subject: [PATCH] change first arg of timer_create to clockid_t The clock id argument should have been of type clockid_t. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1136 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- lib/libcompat.h | 2 +- lib/timer_create.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libcompat.h b/lib/libcompat.h index cc4bb52..54996ad 100644 --- a/lib/libcompat.h +++ b/lib/libcompat.h @@ -171,7 +171,7 @@ struct itimerspec struct sigevent; CK_DLL_EXP int clock_gettime(clockid_t clk_id, struct timespec *ts); -CK_DLL_EXP int timer_create(int clockid, struct sigevent *sevp, +CK_DLL_EXP int timer_create(clockid_t clockid, struct sigevent *sevp, timer_t * timerid); CK_DLL_EXP int timer_settime(timer_t timerid, int flags, const struct itimerspec *new_value, diff --git a/lib/timer_create.c b/lib/timer_create.c index ba956d9..bf1b1bf 100644 --- a/lib/timer_create.c +++ b/lib/timer_create.c @@ -1,6 +1,6 @@ #include "libcompat.h" -int timer_create(int clockid CK_ATTRIBUTE_UNUSED, +int timer_create(clockid_t clockid CK_ATTRIBUTE_UNUSED, struct sigevent *sevp CK_ATTRIBUTE_UNUSED, timer_t * timerid CK_ATTRIBUTE_UNUSED) { -- 2.50.1