]> git.meshlink.io Git - meshlink/blobdiff - src/meta.c
Dejavu: Use snprintf() instead of xasprintf() when generating filenames
[meshlink] / src / meta.c
index 645954965550c601e098f18185c191617aaef540..14342608518aac02ee8c06cfe16d572e2935750a 100644 (file)
@@ -19,9 +19,9 @@
 
 #include "system.h"
 
-#include "cipher.h"
 #include "connection.h"
 #include "logger.h"
+#include "meshlink_internal.h"
 #include "meta.h"
 #include "net.h"
 #include "protocol.h"
@@ -61,7 +61,7 @@ bool send_meta(connection_t *c, const char *buffer, int length) {
 }
 
 void broadcast_meta(connection_t *from, const char *buffer, int length) {
-       for list_each(connection_t, c, connection_list)
+       for list_each(connection_t, c, mesh->connections)
                if(c != from && c->status.active)
                        send_meta(c, buffer, length);
 }