summaryrefslogtreecommitdiff
path: root/src/seq
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2003-02-04 13:44:11 +0000
committerJaroslav Kysela <perex@perex.cz>2003-02-04 13:44:11 +0000
commit74859a4646f1aa5c782143873b9fce42869f79d8 (patch)
treec2f366674bf0fbf9a53fca1aaa0aa168cc3b628b /src/seq
parenta3130729619d6b05f32244ea6fe1d83cc52ff749 (diff)
Fixed compilation problem
Diffstat (limited to 'src/seq')
-rw-r--r--src/seq/seq_hw.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/seq/seq_hw.c b/src/seq/seq_hw.c
index 532395ef..7d330d7e 100644
--- a/src/seq/seq_hw.c
+++ b/src/seq/seq_hw.c
@@ -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);