diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-04-12 20:53:19 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-04-12 20:53:19 +0000 |
commit | 4a1995267e7bd1cce6f48e568d790f35bac4573e (patch) | |
tree | 8b3799b5a79224287e361bed69f0b2567892119d /sysdeps/unix/clock_gettime.c | |
parent | a4dec43d316b2e5dc8855d806bc5ab2ec5eef50d (diff) | |
download | glibc-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/unix/clock_gettime.c')
-rw-r--r-- | sysdeps/unix/clock_gettime.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sysdeps/unix/clock_gettime.c b/sysdeps/unix/clock_gettime.c index b7edd16c9b..19df6c8685 100644 --- a/sysdeps/unix/clock_gettime.c +++ b/sysdeps/unix/clock_gettime.c @@ -29,7 +29,7 @@ int clock_gettime (clockid_t clock_id, struct timespec *tp) { struct timeval tv; - int retval; + int retval = -1; switch (clock_id) { @@ -44,7 +44,6 @@ clock_gettime (clockid_t clock_id, struct timespec *tp) default: __set_errno (EINVAL); - retval = -1; break; } |