rndhw: avoid type-punching
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Sat, 28 Jan 2017 13:00:28 +0000 (15:00 +0200)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Sat, 4 Feb 2017 10:47:05 +0000 (12:47 +0200)
commit37b537600f33fcf8e1c8dc2c658a142fbba44199
tree7d76f7a6d7b91ed2a6e491f41737f4232e16c618
parent1407317a6112a23d4fec5827a9d74faef4196f66
rndhw: avoid type-punching

* random/rndhw.c (rdrand_long, rdrand_nlong): Add 'volatile' for
pointer.
(poll_drng): Convert buffer to 'unsigned long[]' and make use of DIM
macro.
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
random/rndhw.c