From 0cfdeec2e7ebf3612de07bea5c64d3e256b2b13e Mon Sep 17 00:00:00 2001 From: Nedko Arnaudov Date: Wed, 1 Dec 2010 02:55:36 +0200 Subject: [PATCH] alsapid: hide the init function. Fixes #122 hexter.so has an init function with same name as the one in alsapid.so so the hexter one was not being called and the descriptor pointer that is returned was NULL --- alsapid/lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alsapid/lib.c b/alsapid/lib.c index 91fd967a..4552f684 100644 --- a/alsapid/lib.c +++ b/alsapid/lib.c @@ -76,7 +76,7 @@ static int (* real_snd_seq_close)(snd_seq_t * handle); //static int (* real_snd_seq_create_port)(snd_seq_t * handle, snd_seq_port_info_t * info); //static int (* real_snd_seq_create_simple_port)(snd_seq_t * seq, const char * name, unsigned int caps, unsigned int type); -void __attribute__ ((constructor)) init(void); +static void __attribute__ ((constructor)) init(void); /* Library constructor */ void init(void)