From: Bodo Möller Date: Wed, 21 Mar 2001 15:26:47 +0000 (+0000) Subject: Turn 'num' argument to RAND_file_name into a size_t (rather than an int). X-Git-Tag: OpenSSL_0_9_6a-beta2~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cee3fffab5d55c2f0d27681bb047ae88762dd998;p=oweals%2Fopenssl.git Turn 'num' argument to RAND_file_name into a size_t (rather than an int). --- diff --git a/crypto/rand/rand.h b/crypto/rand/rand.h index 971880edaa..7de130347f 100644 --- a/crypto/rand/rand.h +++ b/crypto/rand/rand.h @@ -87,7 +87,7 @@ void RAND_seed(const void *buf,int num); void RAND_add(const void *buf,int num,double entropy); int RAND_load_file(const char *file,long max_bytes); int RAND_write_file(const char *file); -const char *RAND_file_name(char *file,int num); +const char *RAND_file_name(char *file,size_t num); int RAND_status(void); int RAND_egd(const char *path); int RAND_egd_bytes(const char *path,int bytes); diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c index ce1730bd76..3ce294e4e0 100644 --- a/crypto/rand/randfile.c +++ b/crypto/rand/randfile.c @@ -194,7 +194,7 @@ err: return (rand_err ? -1 : ret); } -const char *RAND_file_name(char *buf, int size) +const char *RAND_file_name(char *buf, size_t size) { char *s=NULL; char *ret=NULL; diff --git a/doc/crypto/RAND_load_file.pod b/doc/crypto/RAND_load_file.pod index 8dd700ca3d..d8c134e621 100644 --- a/doc/crypto/RAND_load_file.pod +++ b/doc/crypto/RAND_load_file.pod @@ -8,7 +8,7 @@ RAND_load_file, RAND_write_file, RAND_file_name - PRNG seed file #include - const char *RAND_file_name(char *buf, int num); + const char *RAND_file_name(char *buf, size_t num); int RAND_load_file(const char *filename, long max_bytes); diff --git a/doc/crypto/rand.pod b/doc/crypto/rand.pod index 295b681050..9545f0e109 100644 --- a/doc/crypto/rand.pod +++ b/doc/crypto/rand.pod @@ -8,17 +8,17 @@ rand - pseudo-random number generator #include - int RAND_bytes(unsigned char *buf,int num); - int RAND_pseudo_bytes(unsigned char *buf,int num); + int RAND_bytes(unsigned char *buf, int num); + int RAND_pseudo_bytes(unsigned char *buf, int num); - void RAND_seed(const void *buf,int num); - void RAND_add(const void *buf,int num,int entropy); + void RAND_seed(const void *buf, int num); + void RAND_add(const void *buf, int num, int entropy); int RAND_status(void); void RAND_screen(void); - int RAND_load_file(const char *file,long max_bytes); + int RAND_load_file(const char *file, long max_bytes); int RAND_write_file(const char *file); - const char *RAND_file_name(char *file,int num); + const char *RAND_file_name(char *file, size_t num); int RAND_egd(const char *path);