about summary refs log tree commit diff
path: root/sysdeps/posix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-04-12 20:53:19 +0000
committerUlrich Drepper <drepper@redhat.com>2000-04-12 20:53:19 +0000
commit4a1995267e7bd1cce6f48e568d790f35bac4573e (patch)
tree8b3799b5a79224287e361bed69f0b2567892119d /sysdeps/posix
parenta4dec43d316b2e5dc8855d806bc5ab2ec5eef50d (diff)
downloadglibc-4a1995267e7bd1cce6f48e568d790f35bac4573e.tar.gz
glibc-4a1995267e7bd1cce6f48e568d790f35bac4573e.tar.xz
glibc-4a1995267e7bd1cce6f48e568d790f35bac4573e.zip
Update.
2000-04-12  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/i386/i586/clock_gettime.c: Fix typo.

	* sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include <string.h>
	for memmem declaration.

	* sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval
	to -1.
	* sysdeps/posix/clock_getres.c (clock_getres): Likewise.
Diffstat (limited to 'sysdeps/posix')
-rw-r--r--sysdeps/posix/clock_getres.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sysdeps/posix/clock_getres.c b/sysdeps/posix/clock_getres.c
index 5043ffd0e6..68c9591287 100644
--- a/sysdeps/posix/clock_getres.c
+++ b/sysdeps/posix/clock_getres.c
@@ -29,7 +29,7 @@
 int
 clock_getres (clockid_t clock_id, struct timespec *res)
 {
-  int retval;
+  int retval = -1;
 
   switch (clock_id)
     {
@@ -37,7 +37,6 @@ clock_getres (clockid_t clock_id, struct timespec *res)
       {
 	long int clk_tck = sysconf (_SC_CLK_TCK);
 
-	retval = -1;
 	if (__builtin_expect (clk_tck != -1, 1))
 	  {
 	    /* This implementation assumes that the realtime clock has a
@@ -55,7 +54,6 @@ clock_getres (clockid_t clock_id, struct timespec *res)
 
     default:
       __set_errno (EINVAL);
-      retval = -1;
       break;
     }