Use same name in the definition as in the header file declaration :-/
[openssl.git] / crypto / rand / rand_lib.c
index 6bea09211cee76baf85fcac841b88a6fed92018b..34c6d5b9681d38da4dfb496cb9b3759d38239c13 100644 (file)
@@ -59,7 +59,7 @@
 #include <stdio.h>
 #include <sys/types.h>
 #include <time.h>
-#include "rand.h"
+#include <openssl/rand.h>
 
 #ifdef NO_RAND
 static RAND_METHOD *rand_meth=NULL;
@@ -68,34 +68,29 @@ extern RAND_METHOD rand_ssleay_meth;
 static RAND_METHOD *rand_meth= &rand_ssleay_meth;
 #endif
 
-void RAND_set_rand_method(meth)
-RAND_METHOD *meth;
+void RAND_set_rand_method(RAND_METHOD *meth)
        {
        rand_meth=meth;
        }
 
-RAND_METHOD *RAND_get_rand_method()
+RAND_METHOD *RAND_get_rand_method(void)
        {
        return(rand_meth);
        }
 
-void RAND_cleanup()
+void RAND_cleanup(void)
        {
        if (rand_meth != NULL)
                rand_meth->cleanup();
        }
 
-void RAND_seed(buf,num)
-const void *buf;
-int num;
+void RAND_seed(const void *buf, int num)
        {
        if (rand_meth != NULL)
                rand_meth->seed(buf,num);
        }
 
-void RAND_bytes(buf,num)
-unsigned char *buf;
-int num;
+void RAND_bytes(unsigned char *buf, int num)
        {
        if (rand_meth != NULL)
                rand_meth->bytes(buf,num);