mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Fixed compilation problem
This commit is contained in:
parent
a313072961
commit
74859a4646
1 changed files with 3 additions and 2 deletions
|
|
@ -414,7 +414,7 @@ snd_seq_ops_t snd_seq_hw_ops = {
|
|||
|
||||
int snd_seq_hw_open(snd_seq_t **handle, const char *name, int streams, int mode)
|
||||
{
|
||||
int fd, ver, client, fmode;
|
||||
int fd, ver, client, fmode, ret;
|
||||
char filename[32];
|
||||
snd_seq_t *seq;
|
||||
snd_seq_hw_t *hw;
|
||||
|
|
@ -455,8 +455,9 @@ int snd_seq_hw_open(snd_seq_t **handle, const char *name, int streams, int mode)
|
|||
}
|
||||
if (ioctl(fd, SNDRV_SEQ_IOCTL_PVERSION, &ver) < 0) {
|
||||
SYSERR("SNDRV_SEQ_IOCTL_PVERSION failed");
|
||||
ret = -errno;
|
||||
close(fd);
|
||||
return -errno;
|
||||
return ret;
|
||||
}
|
||||
if (SNDRV_PROTOCOL_INCOMPATIBLE(ver, SNDRV_SEQ_VERSION_MAX)) {
|
||||
close(fd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue