Be more relaxed with c_void

This commit is contained in:
Pierre Krieger 2016-04-25 13:33:12 +02:00
parent b20a76aab8
commit 752676c818
2 changed files with 2 additions and 2 deletions

View file

@ -353,7 +353,7 @@ impl<'a, T> Buffer<'a, T> {
unsafe {
loop {
let result = alsa::snd_pcm_writei(*channel,
self.buffer.as_ptr() as *const libc::c_void,
self.buffer.as_ptr() as *const _,
to_write);
if result == -32 {