mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
Merged pcm2 branch.
This commit is contained in:
parent
986c1500d2
commit
1cd6778173
40 changed files with 5053 additions and 3045 deletions
|
|
@ -38,7 +38,7 @@ const char *snd_strerror(int errnum)
|
|||
if (errnum < SND_ERROR_BEGIN)
|
||||
return (const char *) strerror(errnum);
|
||||
errnum -= SND_ERROR_BEGIN;
|
||||
if (errnum >= sizeof(snd_error_codes) / sizeof(const char *))
|
||||
if ((unsigned int) errnum >= sizeof(snd_error_codes) / sizeof(const char *))
|
||||
return "Unknown error";
|
||||
return snd_error_codes[errnum];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue