X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fmeta.c;h=ccf333dbe012e65c7026b4ec8bce855f0682e05c;hb=93f89bcae11e8d250831896bc5694ee8bd2ad22b;hp=160333b2c4cb140ced2bb17395ab550f0d6cb89d;hpb=21f0bddfa4dca5fb21c9dc4970ac64fa8fe706e4;p=meshlink diff --git a/src/meta.c b/src/meta.c index 160333b2..ccf333db 100644 --- a/src/meta.c +++ b/src/meta.c @@ -19,7 +19,6 @@ #include "system.h" -#include "cipher.h" #include "connection.h" #include "logger.h" #include "meshlink_internal.h" @@ -38,7 +37,7 @@ bool send_meta_sptps(void *handle, uint8_t type, const char *buffer, size_t leng } buffer_add(&c->outbuf, buffer, length); - io_set(&c->io, IO_READ | IO_WRITE); + io_set(&mesh->loop, &c->io, IO_READ | IO_WRITE); return true; } @@ -54,7 +53,7 @@ bool send_meta(connection_t *c, const char *buffer, int length) { if(c->allow_request == ID) { buffer_add(&c->outbuf, buffer, length); - io_set(&c->io, IO_READ | IO_WRITE); + io_set(&mesh->loop, &c->io, IO_READ | IO_WRITE); return true; }