Fixed use of poll_descriptors

This commit is contained in:
Abramo Bagnara 2001-02-22 10:29:39 +00:00
parent 59bbfe130f
commit 33b8d4717e

View file

@ -239,7 +239,7 @@ static void init_seq(char *source, char *dest)
perror("snd_seq_open");
exit(1);
}
err = snd_seq_poll_descriptors(handle, &pfd, 1);
err = snd_seq_poll_descriptors(handle, &pfd, 1, POLLIN | POLLOUT);
assert(err == 1);
seqfd = pfd.fd;