mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-11 07:44:12 +02:00
Part of Modern C porting Closes: https://bugs.gentoo.org/920156 Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com> Signed-off-by: Sam James <sam@gentoo.org>
14 lines
381 B
Diff
14 lines
381 B
Diff
Fix incompatible pointer types by passing right buffer to
|
|
get_random_data()
|
|
https://bugs.gentoo.org/920156
|
|
--- a/audio-entropyd.c
|
|
+++ b/audio-entropyd.c
|
|
@@ -211,7 +211,7 @@
|
|
|
|
void main_loop(const char *cdevice, int sample_rate)
|
|
{
|
|
- unsigned char *output_buffer = NULL;
|
|
+ char *output_buffer = NULL;
|
|
int n_output_bytes = -1;
|
|
int random_fd = -1, max_bits;
|
|
FILE *poolsize_fh;
|