a6f480686f
use ctor/dtor attributes, avoid multiple init/fini definitions. problem noticed by steven.
28 lines
803 B
Plaintext
28 lines
803 B
Plaintext
$OpenBSD: patch-src_plugins_noise_c,v 1.1 2006/08/04 23:34:39 espie Exp $
|
|
--- src/plugins/noise.c.orig Sat Aug 5 01:15:43 2006
|
|
+++ src/plugins/noise.c Sat Aug 5 01:16:54 2006
|
|
@@ -140,10 +140,13 @@ LADSPA_Descriptor * g_psDescriptor;
|
|
|
|
/*****************************************************************************/
|
|
|
|
+void init() __attribute__((constructor));
|
|
+void fini() __attribute__((destructor));
|
|
+
|
|
/* _init() is called automatically when the plugin library is first
|
|
loaded. */
|
|
void
|
|
-_init() {
|
|
+init() {
|
|
|
|
char ** pcPortNames;
|
|
LADSPA_PortDescriptor * piPortDescriptors;
|
|
@@ -220,7 +223,7 @@ _init() {
|
|
|
|
/* _fini() is called automatically when the library is unloaded. */
|
|
void
|
|
-_fini() {
|
|
+fini() {
|
|
long lIndex;
|
|
if (g_psDescriptor) {
|
|
free((char *)g_psDescriptor->Label);
|