diff options
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/jrand48_r.c | 7 | ||||
-rw-r--r-- | stdlib/lcong48_r.c | 7 | ||||
-rw-r--r-- | stdlib/msort.c | 1 | ||||
-rw-r--r-- | stdlib/nrand48_r.c | 7 | ||||
-rw-r--r-- | stdlib/seed48_r.c | 7 | ||||
-rw-r--r-- | stdlib/srand48_r.c | 7 |
6 files changed, 1 insertions, 35 deletions
diff --git a/stdlib/jrand48_r.c b/stdlib/jrand48_r.c index b1a4378028..1a89790525 100644 --- a/stdlib/jrand48_r.c +++ b/stdlib/jrand48_r.c @@ -25,13 +25,6 @@ jrand48_r (xsubi, buffer, result) struct drand48_data *buffer; long *result; { - /* Be generous for the arguments, detect some errors. */ - if (result == NULL) - { - errno = EFAULT; - return -1; - } - /* Compute next state. */ if (__drand48_iterate (xsubi, buffer) < 0) return -1; diff --git a/stdlib/lcong48_r.c b/stdlib/lcong48_r.c index cc38b4dc7c..f607bc5b84 100644 --- a/stdlib/lcong48_r.c +++ b/stdlib/lcong48_r.c @@ -24,13 +24,6 @@ lcong48_r (param, buffer) unsigned short int param[7]; struct drand48_data *buffer; { - /* Be generous for the arguments, detect some errors. */ - if (buffer == NULL) - { - errno = EFAULT; - return -1; - } - /* Store the given values. */ memcpy (buffer->X, ¶m[0], sizeof (buffer->X)); memcpy (buffer->a, ¶m[3], sizeof (buffer->a)); diff --git a/stdlib/msort.c b/stdlib/msort.c index 21fbbfb2bf..e2834ce6ca 100644 --- a/stdlib/msort.c +++ b/stdlib/msort.c @@ -23,6 +23,7 @@ Cambridge, MA 02139, USA. */ #include <stdlib.h> #include <string.h> #include <memcopy.h> +#include <errno.h> static void DEFUN(msort_with_tmp, (b, n, s, cmp, t), diff --git a/stdlib/nrand48_r.c b/stdlib/nrand48_r.c index 1bbc29e7ef..d5ebf35dd2 100644 --- a/stdlib/nrand48_r.c +++ b/stdlib/nrand48_r.c @@ -25,13 +25,6 @@ nrand48_r (xsubi, buffer, result) struct drand48_data *buffer; long *result; { - /* Be generous for the arguments, detect some errors. */ - if (result == NULL) - { - errno = EFAULT; - return -1; - } - /* Compute next state. */ if (__drand48_iterate (xsubi, buffer) < 0) return -1; diff --git a/stdlib/seed48_r.c b/stdlib/seed48_r.c index 4d43507742..e45c3d2ad3 100644 --- a/stdlib/seed48_r.c +++ b/stdlib/seed48_r.c @@ -24,13 +24,6 @@ seed48_r (seed16v, buffer) unsigned short int seed16v[3]; struct drand48_data *buffer; { - /* Be generous for the arguments, detect some errors. */ - if (buffer == NULL) - { - errno = EFAULT; - return -1; - } - /* Save old value at a private place to be used as return value. */ memcpy (buffer->old_X, buffer->X, sizeof (buffer->X)); diff --git a/stdlib/srand48_r.c b/stdlib/srand48_r.c index ac313f6c48..8720854249 100644 --- a/stdlib/srand48_r.c +++ b/stdlib/srand48_r.c @@ -24,13 +24,6 @@ srand48_r (seedval, buffer) long seedval; struct drand48_data *buffer; { - /* Be generous for the arguments, detect some errors. */ - if (buffer == NULL) - { - errno = EFAULT; - return -1; - } - /* The standards say we only have 32 bits. */ if (sizeof (long) > 4) seedval &= 0xffffffffl; |