diff options
author | Ulf Möller <ulf@openssl.org> | 1999-04-19 21:31:43 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 1999-04-19 21:31:43 +0000 |
commit | 6b691a5c85ddc4e407e32781841fee5c029506cd (patch) | |
tree | 436f1127406e1cacfe83dfcbfff824d89c47d834 /crypto/rand/rand_lib.c | |
parent | 3edd7ed15de229230f74c79c3d71e7c9c674cf4f (diff) |
Change functions to ANSI C.
Diffstat (limited to 'crypto/rand/rand_lib.c')
-rw-r--r-- | crypto/rand/rand_lib.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/crypto/rand/rand_lib.c b/crypto/rand/rand_lib.c index 6bea09211c..2eb5e12182 100644 --- a/crypto/rand/rand_lib.c +++ b/crypto/rand/rand_lib.c @@ -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); |