diff options
Diffstat (limited to 'libc')
-rw-r--r-- | libc/stdlib/drand48-iter.c | 4 | ||||
-rw-r--r-- | libc/stdlib/erand48_r.c | 3 | ||||
-rw-r--r-- | libc/stdlib/jrand48_r.c | 3 | ||||
-rw-r--r-- | libc/stdlib/nrand48_r.c | 3 | ||||
-rw-r--r-- | libc/stdlib/system.c | 3 |
5 files changed, 11 insertions, 5 deletions
diff --git a/libc/stdlib/drand48-iter.c b/libc/stdlib/drand48-iter.c index 7ccc2fbc9..a69d03326 100644 --- a/libc/stdlib/drand48-iter.c +++ b/libc/stdlib/drand48-iter.c @@ -28,9 +28,7 @@ struct drand48_data __libc_drand48_data; int -__drand48_iterate (xsubi, buffer) - unsigned short int xsubi[3]; - struct drand48_data *buffer; +__drand48_iterate (unsigned short int xsubi[3], struct drand48_data *buffer) { uint64_t X; uint64_t result; diff --git a/libc/stdlib/erand48_r.c b/libc/stdlib/erand48_r.c index fb48304fa..85971cc02 100644 --- a/libc/stdlib/erand48_r.c +++ b/libc/stdlib/erand48_r.c @@ -21,6 +21,9 @@ #include <stdlib.h> #include <limits.h> +extern int __drand48_iterate(unsigned short xsubi[3], + struct drand48_data *buffer); + int erand48_r (xsubi, buffer, result) unsigned short int xsubi[3]; diff --git a/libc/stdlib/jrand48_r.c b/libc/stdlib/jrand48_r.c index 8ea3d09bd..86d1ba363 100644 --- a/libc/stdlib/jrand48_r.c +++ b/libc/stdlib/jrand48_r.c @@ -19,6 +19,9 @@ #include <stdlib.h> +extern int __drand48_iterate(unsigned short xsubi[3], + struct drand48_data *buffer); + int jrand48_r (xsubi, buffer, result) unsigned short int xsubi[3]; struct drand48_data *buffer; diff --git a/libc/stdlib/nrand48_r.c b/libc/stdlib/nrand48_r.c index dd2eed8f1..f08ac9c36 100644 --- a/libc/stdlib/nrand48_r.c +++ b/libc/stdlib/nrand48_r.c @@ -19,6 +19,9 @@ #include <stdlib.h> +extern int __drand48_iterate(unsigned short xsubi[3], + struct drand48_data *buffer); + int nrand48_r (xsubi, buffer, result) unsigned short int xsubi[3]; struct drand48_data *buffer; diff --git a/libc/stdlib/system.c b/libc/stdlib/system.c index b15d601aa..b365ef82e 100644 --- a/libc/stdlib/system.c +++ b/libc/stdlib/system.c @@ -10,8 +10,7 @@ #define vfork fork #endif -int __libc_system(command) -char *command; +int __libc_system(char *command) { int wait_val, pid; __sighandler_t save_quit, save_int, save_chld; |