Fix prototype. Also the function should return error code instead of

-1 on error.
This commit is contained in:
David Xu 2012-08-21 09:17:13 +00:00
parent 2467c62fc6
commit cdfe902650
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=239485

View File

@ -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);
}