mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix prototype. Also the function should return error code instead of
-1 on error.
This commit is contained in:
parent
2467c62fc6
commit
cdfe902650
1 changed files with 4 additions and 2 deletions
|
|
@ -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 a new issue