fixed compiler warnings on 64bit
This commit is contained in:
@@ -56,7 +56,7 @@ struct rng_t {
|
||||
* @param len number of bytes to get
|
||||
* @param buffer pointer where the generated bytes will be written
|
||||
*/
|
||||
void (*get_bytes) (rng_t *this, u_int len, u_int8_t *buffer);
|
||||
void (*get_bytes) (rng_t *this, size_t len, u_int8_t *buffer);
|
||||
|
||||
/**
|
||||
* Generates random bytes and allocate space for them.
|
||||
@@ -64,7 +64,7 @@ struct rng_t {
|
||||
* @param len number of bytes to get
|
||||
* @param chunk chunk which will hold generated bytes
|
||||
*/
|
||||
void (*allocate_bytes) (rng_t *this, u_int len, chunk_t *chunk);
|
||||
void (*allocate_bytes) (rng_t *this, size_t len, chunk_t *chunk);
|
||||
|
||||
/**
|
||||
* Destroys a rng object.
|
||||
|
||||
Reference in New Issue
Block a user