From 836fb8e014a1b168f8cc5d49e976fd1813ff6dd0 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 4 Oct 2004 23:12:07 +0000 Subject: [PATCH] (clock_getcpuclockid): Add missing retval. --- sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c | 2 ++ 1 file changed, 2 insertions(+) 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. */