aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--artnet.c2
-rw-r--r--plugin.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/artnet.c b/artnet.c
index f10e6ec..82b4486 100644
--- a/artnet.c
+++ b/artnet.c
@@ -320,7 +320,7 @@ static int artnet_set(instance* inst, size_t num, channel** c, channel_value* v)
.universe = data->uni,
.net = data->net,
.length = htobe16(512),
- .data = {}
+ .data = {0}
};
memcpy(frame.data, data->data.out, 512);
diff --git a/plugin.c b/plugin.c
index 1f552f0..39a92be 100644
--- a/plugin.c
+++ b/plugin.c
@@ -30,7 +30,7 @@ static int plugin_attach(char* path, char* file){
return 0;
}
- init = dlsym(handle, "init");
+ init = (plugin_init) dlsym(handle, "init");
if(init){
if(init()){
fprintf(stderr, "Plugin %s failed to initialize\n", lib);