libselinux: Hide unnecessarily-exported library destructors

Description: Hide unnecessarily-exported library destructors
This change was extracted from the old monolithic Debian patch.

Signed-off-by: Laurent Bigonville <bigon@debian.org>
Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
Laurent Bigonville 2012-03-26 20:45:49 +02:00 committed by Eric Paris
parent f7a75f1761
commit a4f84109b5
2 changed files with 2 additions and 2 deletions

View File

@ -294,7 +294,7 @@ static void matchpathcon_thread_destructor(void __attribute__((unused)) *ptr)
void __attribute__((destructor)) matchpathcon_lib_destructor(void);
void __attribute__((destructor)) matchpathcon_lib_destructor(void)
void hidden __attribute__((destructor)) matchpathcon_lib_destructor(void)
{
if (destructor_key_initialized)
__selinux_key_delete(destructor_key);

View File

@ -255,7 +255,7 @@ static void setrans_thread_destructor(void __attribute__((unused)) *unused)
void __attribute__((destructor)) setrans_lib_destructor(void);
void __attribute__((destructor)) setrans_lib_destructor(void)
void hidden __attribute__((destructor)) setrans_lib_destructor(void)
{
if (destructor_key_initialized)
__selinux_key_delete(destructor_key);