mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-11 13:30:05 -05:00
error: do not export internal snd_err_msg variable
This variable was never intended to modify from outside (not in public headers). Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
fa6e83d780
commit
0a4e8854d5
2 changed files with 5 additions and 5 deletions
|
|
@ -131,7 +131,7 @@ int snd_lib_error_set_handler(snd_lib_error_handler_t handler)
|
|||
snd_lib_error = handler == NULL ? snd_lib_error_default : handler;
|
||||
#ifndef NDEBUG
|
||||
if (snd_lib_error != snd_lib_error_default)
|
||||
snd_err_msg = snd_lib_error;
|
||||
_snd_err_msg = snd_lib_error;
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -174,7 +174,7 @@ static void snd_err_msg_default(const char *file, int line, const char *function
|
|||
/**
|
||||
* The ALSA error message handler
|
||||
*/
|
||||
snd_lib_error_handler_t snd_err_msg = snd_err_msg_default;
|
||||
snd_lib_error_handler_t _snd_err_msg = snd_err_msg_default;
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue