Skip to content

Commit 1efe202

Browse files
t-8chshuahkh
authored andcommitted
selftests/timens: timerfd: Use correct clockid type in tclock_gettime()
tclock_gettime() is a wrapper around clock_gettime(). The first parameter of clock_gettime() is of type "clockid_t", not "clock_t". Use the correct type instead. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Thomas Weißschuh <[email protected]> Reviewed-by: Muhammad Usama Anjum <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 261639f commit 1efe202

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/timens/timerfd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "log.h"
1616
#include "timens.h"
1717

18-
static int tclock_gettime(clock_t clockid, struct timespec *now)
18+
static int tclock_gettime(clockid_t clockid, struct timespec *now)
1919
{
2020
if (clockid == CLOCK_BOOTTIME_ALARM)
2121
clockid = CLOCK_BOOTTIME;

0 commit comments

Comments
 (0)