From 74859a4646f1aa5c782143873b9fce42869f79d8 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 4 Feb 2003 13:44:11 +0000 Subject: [PATCH] Fixed compilation problem --- src/seq/seq_hw.c | 5 +++-- 1 file 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); -- 2.47.1