Fix prototype. Also the function should return error code instead of
-1 on error.
This commit is contained in:
parent
2467c62fc6
commit
cdfe902650
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=239485
@ -32,8 +32,10 @@ __FBSDID("$FreeBSD$");
|
||||
#include <unistd.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
clockid_t
|
||||
int
|
||||
clock_getcpuclockid(pid_t pid, clockid_t *clock_id)
|
||||
{
|
||||
return clock_getcpuclockid2(pid, CPUCLOCK_WHICH_PID, clock_id);
|
||||
if (clock_getcpuclockid2(pid, CPUCLOCK_WHICH_PID, clock_id))
|
||||
return (errno);
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user