summaryrefslogtreecommitdiff
path: root/libc/stdlib/drand48.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-02-20 00:20:46 +0000
committerMike Frysinger <vapier@gentoo.org>2006-02-20 00:20:46 +0000
commitc796a16a9266918c325fc9678bc88e596accf4fb (patch)
tree743a51cba1721b4b732ed9b047c54981938928bd /libc/stdlib/drand48.c
parent4818c347d02c8161f005f7821846f6afead50b5b (diff)
sync minor touchups with glibc
Diffstat (limited to 'libc/stdlib/drand48.c')
-rw-r--r--libc/stdlib/drand48.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/libc/stdlib/drand48.c b/libc/stdlib/drand48.c
index 7fd792fef..ab6239d75 100644
--- a/libc/stdlib/drand48.c
+++ b/libc/stdlib/drand48.c
@@ -1,6 +1,6 @@
-/* Copyright (C) 1995, 1996, 1997, 1998, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1995,1996,1997,1998,2001,2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
- Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu <mailto:drepper@gnu.ai.mit.edu>>, August 1995.
+ Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -24,11 +24,12 @@ libc_hidden_proto(erand48_r)
/* Global state for non-reentrant functions. Defined in drand48-iter.c. */
extern struct drand48_data __libc_drand48_data attribute_hidden;
-double drand48 (void)
+double
+drand48 ()
{
- double result;
+ double result;
- erand48_r (__libc_drand48_data.__x, &__libc_drand48_data, &result);
+ (void) erand48_r (__libc_drand48_data.__x, &__libc_drand48_data, &result);
- return result;
+ return result;
}