mirror of git://sourceware.org/git/glibc.git
(clock_getcpuclockid): Add missing retval.
This commit is contained in:
parent
982e38a67d
commit
836fb8e014
|
@ -34,6 +34,8 @@ clock_getcpuclockid (pid_t pid, clockid_t *clock_id)
|
||||||
if (pid != 0 && pid != getpid ())
|
if (pid != 0 && pid != getpid ())
|
||||||
return EPERM;
|
return EPERM;
|
||||||
|
|
||||||
|
int retval = ENOENT;
|
||||||
|
|
||||||
if (has_cpuclock () > 0)
|
if (has_cpuclock () > 0)
|
||||||
{
|
{
|
||||||
/* Store the number. */
|
/* Store the number. */
|
||||||
|
|
Loading…
Reference in New Issue