]> granicus.if.org Git - check/commitdiff
change first arg of timer_create to clockid_t
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 26 May 2014 21:03:06 +0000 (21:03 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 26 May 2014 21:03:06 +0000 (21:03 +0000)
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
lib/timer_create.c

index cc4bb521915a8b5a2abf34e2e9447d9fb226aa44..54996adb0a1bb9702c16fd19eaa4a8a549b6bac2 100644 (file)
@@ -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,
index ba956d98b5cf43ff4ed767c2f0cb03e965323eaf..bf1b1bfa2c4cd14bc62f6ccd02322be3a0faac8c 100644 (file)
@@ -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)
 {