From 4a1995267e7bd1cce6f48e568d790f35bac4573e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 12 Apr 2000 20:53:19 +0000 Subject: Update. 2000-04-12 Andreas Jaeger * sysdeps/unix/i386/i586/clock_gettime.c: Fix typo. * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Include for memmem declaration. * sysdeps/unix/clock_gettime.c (clock_gettime): Initialize retval to -1. * sysdeps/posix/clock_getres.c (clock_getres): Likewise. --- sysdeps/posix/clock_getres.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sysdeps/posix') 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; } -- cgit 1.4.1