aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-03-23 14:30:11 +0100
committercbdev <cb@cbcdn.com>2019-03-23 14:30:11 +0100
commit90c58250ed8f10996000bc6cea10385f97969847 (patch)
treec82844985ab2a6b6a99137953a41e1dab884efb4
parent95f804bb5f8239d018e8fa440a2ca3e0111d4696 (diff)
downloadmidimonster-90c58250ed8f10996000bc6cea10385f97969847.tar.gz
midimonster-90c58250ed8f10996000bc6cea10385f97969847.tar.bz2
midimonster-90c58250ed8f10996000bc6cea10385f97969847.zip
Fix link visibilities
-rw-r--r--backends/ola.cpp4
-rw-r--r--plugin.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/backends/ola.cpp b/backends/ola.cpp
index 299c883..c9c535c 100644
--- a/backends/ola.cpp
+++ b/backends/ola.cpp
@@ -153,7 +153,7 @@ static int ola_handle(size_t num, managed_fd* fds){
return 0;
}
-void ola_data_receive(unsigned int universe, const ola::DmxBuffer& ola_dmx, const std::string& error) {
+static void ola_data_receive(unsigned int universe, const ola::DmxBuffer& ola_dmx, const std::string& error) {
size_t p, max_mark = 0;
//this should really be size_t but ola is weird...
unsigned int dmx_length = 512;
@@ -214,7 +214,7 @@ void ola_data_receive(unsigned int universe, const ola::DmxBuffer& ola_dmx, cons
}
}
-void ola_register_callback(const std::string &error) {
+static void ola_register_callback(const std::string &error) {
if(!error.empty()){
fprintf(stderr, "OLA backend failed to register for universe: %s\n", error.c_str());
}
diff --git a/plugin.c b/plugin.c
index 48db410..fc642ac 100644
--- a/plugin.c
+++ b/plugin.c
@@ -8,8 +8,8 @@
#include <dirent.h>
#include "plugin.h"
-size_t plugins = 0;
-void** plugin_handle = NULL;
+static size_t plugins = 0;
+static void** plugin_handle = NULL;
static int plugin_attach(char* path, char* file){
plugin_init init = NULL;