util/arc4random: (void*) type pointer passing address could remove cast

Signed-off-by: Li zeming <zeming@nfschina.com>
This commit is contained in:
Li zeming
2022-08-01 11:08:09 +08:00
committed by Todd C. Miller
parent 210eb17cb7
commit c27acf55ec

View File

@@ -150,7 +150,7 @@ _rs_rekey(unsigned char *dat, size_t datlen)
static inline void
_rs_random_buf(void *_buf, size_t n)
{
unsigned char *buf = (unsigned char *)_buf;
unsigned char *buf = _buf;
unsigned char *keystream;
size_t m;