OSDN Git Service

Cleanup some silly warnings
authorEric Andersen <andersen@codepoet.org>
Thu, 8 Aug 2002 05:28:52 +0000 (05:28 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 8 Aug 2002 05:28:52 +0000 (05:28 -0000)
libc/stdlib/drand48-iter.c
libc/stdlib/erand48_r.c
libc/stdlib/jrand48_r.c
libc/stdlib/nrand48_r.c
libc/stdlib/system.c

index 7ccc2fb..a69d033 100644 (file)
@@ -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;
index fb48304..85971cc 100644 (file)
@@ -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];
index 8ea3d09..86d1ba3 100644 (file)
@@ -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;
index dd2eed8..f08ac9c 100644 (file)
@@ -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;
index b15d601..b365ef8 100644 (file)
@@ -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;