diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-10-04 23:12:07 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-10-04 23:12:07 +0000 |
commit | 836fb8e014a1b168f8cc5d49e976fd1813ff6dd0 (patch) | |
tree | f1cf1e5878982c32879cb6028f14e41e3b27af27 /sysdeps/unix/sysv/linux/ia64 | |
parent | 982e38a67d7ecace3324374a5b33d02134d311c7 (diff) | |
download | glibc-836fb8e014a1b168f8cc5d49e976fd1813ff6dd0.tar.gz glibc-836fb8e014a1b168f8cc5d49e976fd1813ff6dd0.tar.xz glibc-836fb8e014a1b168f8cc5d49e976fd1813ff6dd0.zip |
(clock_getcpuclockid): Add missing retval.
Diffstat (limited to 'sysdeps/unix/sysv/linux/ia64')
-rw-r--r-- | sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c b/sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c index 229f93d67d..d2c45a560a 100644 --- a/sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c +++ b/sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c @@ -34,6 +34,8 @@ clock_getcpuclockid (pid_t pid, clockid_t *clock_id) if (pid != 0 && pid != getpid ()) return EPERM; + int retval = ENOENT; + if (has_cpuclock () > 0) { /* Store the number. */ |