Skip to content

Commit d0bdee7

Browse files
committed
aconnect: fix error handler for alsa-lib <= 1.2.15
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
1 parent bcbdf24 commit d0bdee7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

seq/aconnect/aconnect.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
* ver.0.1.3
44
*
55
* Copyright (C) 1999 Takashi Iwai
6-
*
6+
*
77
* This program is free software; you can redistribute it and/or modify
88
* it under the terms of the GNU General Public License version 2 as
99
* published by the Free Software Foundation.
10-
*
10+
*
1111
* This program is distributed in the hope that it will be useful,
1212
* but WITHOUT ANY WARRANTY; without even the implied warranty of
1313
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@@ -42,8 +42,8 @@ static void error_handler(const char *file, int line, const char *function, int
4242
va_start(arg, fmt);
4343
fprintf(stderr, "ALSA lib %s:%i:(%s) ", file, line, function);
4444
vfprintf(stderr, fmt, arg);
45-
if (err)
46-
fprintf(stderr, ": %s", snd_strerror(err));
45+
if (errcode)
46+
fprintf(stderr, ": %s", snd_strerror(errcode));
4747
putc('\n', stderr);
4848
va_end(arg);
4949
}
@@ -367,7 +367,7 @@ int main(int argc, char **argv)
367367
fprintf(stderr, _("can't open sequencer\n"));
368368
return 1;
369369
}
370-
370+
371371
#if SND_LIB_VER(1, 2, 15) < SND_LIB_VERSION
372372
snd_lib_error_set_handler(error_handler);
373373
#else

0 commit comments

Comments
 (0)