Browse Source

Cleanup some silly warnings

Eric Andersen 22 years ago
parent
commit
1b2442d41e

+ 1 - 3
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;

+ 3 - 0
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];

+ 3 - 0
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;

+ 3 - 0
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;

+ 1 - 2
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;