]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Added missing reference to stream in snd_rawmidi_stream_flush
authorJaroslav Kysela <perex@perex.cz>
Sun, 18 Jun 2000 13:01:30 +0000 (13:01 +0000)
committerJaroslav Kysela <perex@perex.cz>
Sun, 18 Jun 2000 13:01:30 +0000 (13:01 +0000)
src/rawmidi/rawmidi.c

index c61dd92ba290cfbfde984f8253c6c68bfd93f762..f733a35cff69da877f0d67c63fce30fd964d125e 100644 (file)
@@ -171,7 +171,7 @@ int snd_rawmidi_stream_flush(snd_rawmidi_t *rmidi, int str)
                return -EINVAL;
        if (str < 0 || str > 1)
                return -EINVAL;
-       if (ioctl(rmidi->fd, SND_RAWMIDI_IOCTL_STREAM_FLUSH) < 0)
+       if (ioctl(rmidi->fd, SND_RAWMIDI_IOCTL_STREAM_FLUSH, &str) < 0)
                return -errno;
        return 0;
 }