gentoo-ebuilds/sys-apps/audio-entropyd/files/audio-entropyd-2.0.3-incompatible-pointers.patch
NHOrus 9cd8174dab
sys-apps/audio-entropyd: Fix incompatible pointers
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>
2025-02-10 09:04:48 +00:00

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;