patch-src_plugins_delay_c 808 B

12345678910111213141516171819202122232425262728
  1. $OpenBSD: patch-src_plugins_delay_c,v 1.1 2006/08/04 23:34:39 espie Exp $
  2. --- src/plugins/delay.c.orig Sat Aug 5 01:15:43 2006
  3. +++ src/plugins/delay.c Sat Aug 5 01:16:12 2006
  4. @@ -226,10 +226,13 @@ LADSPA_Descriptor * g_psDescriptor = NUL
  5. /*****************************************************************************/
  6. +void init() __attribute__((constructor));
  7. +void fini() __attribute__((destructor));
  8. +
  9. /* _init() is called automatically when the plugin library is first
  10. loaded. */
  11. void
  12. -_init() {
  13. +init() {
  14. char ** pcPortNames;
  15. LADSPA_PortDescriptor * piPortDescriptors;
  16. @@ -323,7 +326,7 @@ _init() {
  17. /* _fini() is called automatically when the library is unloaded. */
  18. void
  19. -_fini() {
  20. +fini() {
  21. long lIndex;
  22. if (g_psDescriptor) {
  23. free((char *)g_psDescriptor->Label);