This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Add missing retval


sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c uses retval without
defining it. This patch fixes it.


H.J.
----
2004-10-04  H.J. Lu  <hongjiu.lu@intel.com>

	* sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c
	(clock_getcpuclockid): Add missing retval.

--- sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c.misc	2004-10-04 14:59:33.000000000 -0700
+++ sysdeps/unix/sysv/linux/ia64/clock_getcpuclockid.c	2004-10-04 15:28:29.000000000 -0700
@@ -34,6 +34,8 @@ clock_getcpuclockid (pid_t pid, clockid_
   if (pid != 0 && pid != getpid ())
     return EPERM;
 
+  int retval = ENOENT;
+
   if (has_cpuclock () > 0)
     {
       /* Store the number.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]