summaryrefslogtreecommitdiffstats
path: root/libc/stdlib/seed48_r.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-12-02 01:52:28 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-12-02 01:52:28 +0000
commit450f92eb7165131ff3fdb2f80ec2fc65254f5ccb (patch)
tree4a0260d6717520379b98af80419feda2ca7cea29 /libc/stdlib/seed48_r.c
parent6fd3ac79613c9e1832513b0f614860be2735993f (diff)
downloaduClibc-alpine-450f92eb7165131ff3fdb2f80ec2fc65254f5ccb.tar.bz2
uClibc-alpine-450f92eb7165131ff3fdb2f80ec2fc65254f5ccb.tar.xz
Merge from trunk.
Diffstat (limited to 'libc/stdlib/seed48_r.c')
-rw-r--r--libc/stdlib/seed48_r.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/stdlib/seed48_r.c b/libc/stdlib/seed48_r.c
index 734b5e39d..d1c74f24c 100644
--- a/libc/stdlib/seed48_r.c
+++ b/libc/stdlib/seed48_r.c
@@ -21,10 +21,10 @@
#include <string.h>
#include <limits.h>
-int seed48_r (unsigned short int seed16v[3], struct drand48_data *buffer)
+int attribute_hidden __seed48_r (unsigned short int seed16v[3], struct drand48_data *buffer)
{
/* Save old value at a private place to be used as return value. */
- memcpy (buffer->__old_x, buffer->__x, sizeof (buffer->__x));
+ __memcpy (buffer->__old_x, buffer->__x, sizeof (buffer->__x));
/* Install new state. */
buffer->__x[2] = seed16v[2];
@@ -36,3 +36,4 @@ int seed48_r (unsigned short int seed16v[3], struct drand48_data *buffer)
return 0;
}
+strong_alias(__seed48_r,seed48_r)