Eric Andersen 22 лет назад
Родитель
Сommit
1b2442d41e
5 измененных файлов с 11 добавлено и 5 удалено
  1. 1 3
      libc/stdlib/drand48-iter.c
  2. 3 0
      libc/stdlib/erand48_r.c
  3. 3 0
      libc/stdlib/jrand48_r.c
  4. 3 0
      libc/stdlib/nrand48_r.c
  5. 1 2
      libc/stdlib/system.c

+ 1 - 3
libc/stdlib/drand48-iter.c

@@ -28,9 +28,7 @@ struct drand48_data __libc_drand48_data;
 
 
 
 
 int
 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 X;
   uint64_t result;
   uint64_t result;

+ 3 - 0
libc/stdlib/erand48_r.c

@@ -21,6 +21,9 @@
 #include <stdlib.h>
 #include <stdlib.h>
 #include <limits.h>
 #include <limits.h>
 
 
+extern int __drand48_iterate(unsigned short xsubi[3], 
+	struct drand48_data *buffer);
+
 
 
 int erand48_r (xsubi, buffer, result)
 int erand48_r (xsubi, buffer, result)
      unsigned short int xsubi[3];
      unsigned short int xsubi[3];

+ 3 - 0
libc/stdlib/jrand48_r.c

@@ -19,6 +19,9 @@
 
 
 #include <stdlib.h>
 #include <stdlib.h>
 
 
+extern int __drand48_iterate(unsigned short xsubi[3], 
+	struct drand48_data *buffer);
+
 int jrand48_r (xsubi, buffer, result)
 int jrand48_r (xsubi, buffer, result)
      unsigned short int xsubi[3];
      unsigned short int xsubi[3];
      struct drand48_data *buffer;
      struct drand48_data *buffer;

+ 3 - 0
libc/stdlib/nrand48_r.c

@@ -19,6 +19,9 @@
 
 
 #include <stdlib.h>
 #include <stdlib.h>
 
 
+extern int __drand48_iterate(unsigned short xsubi[3], 
+	struct drand48_data *buffer);
+
 int nrand48_r (xsubi, buffer, result)
 int nrand48_r (xsubi, buffer, result)
      unsigned short int xsubi[3];
      unsigned short int xsubi[3];
      struct drand48_data *buffer;
      struct drand48_data *buffer;

+ 1 - 2
libc/stdlib/system.c

@@ -10,8 +10,7 @@
 #define vfork fork	
 #define vfork fork	
 #endif
 #endif
 
 
-int __libc_system(command)
-char *command;
+int __libc_system(char *command)
 {
 {
 	int wait_val, pid;
 	int wait_val, pid;
 	__sighandler_t save_quit, save_int, save_chld;
 	__sighandler_t save_quit, save_int, save_chld;