Commit 902e2b5141d1c4229387be7c06a54c0241ae3773

Authored by malc
1 parent 23e39294

Add NULL argument to SNDCTL_DSP_NONBLOCK ioctl call

Comes from here:
http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/emulators/qemu/patches/patch-am?rev=1.2&content-type=text/x-cvsweb-markup

http://manuals.opensound.com/developer/SNDCTL_DSP_NONBLOCK.html
No explanation for NULL given.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4825 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
audio/ossaudio.c
... ... @@ -237,7 +237,7 @@ static int oss_open (int in, struct oss_params *req,
237 237 goto err;
238 238 }
239 239  
240   - if (ioctl (fd, SNDCTL_DSP_NONBLOCK)) {
  240 + if (ioctl (fd, SNDCTL_DSP_NONBLOCK, NULL)) {
241 241 oss_logerr2 (errno, typ, "Failed to set non-blocking mode\n");
242 242 goto err;
243 243 }
... ...