From: Guus Sliepen Date: Sat, 26 Apr 2014 07:39:56 +0000 (+0200) Subject: Remove temporary global variable "loop". X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=d120093edac59d1e634d970ee486f4a2a205d2fa;p=meshlink Remove temporary global variable "loop". --- diff --git a/src/event.c b/src/event.c index 85ea9bb8..d23f43bb 100644 --- a/src/event.c +++ b/src/event.c @@ -26,8 +26,6 @@ #include "utils.h" #include "xalloc.h" -event_loop_t *loop; - static int io_compare(const io_t *a, const io_t *b) { return a->fd - b->fd; } diff --git a/src/event.h b/src/event.h index 0993e24c..fa21bd0f 100644 --- a/src/event.h +++ b/src/event.h @@ -70,8 +70,6 @@ struct event_loop_t { void *data; }; -extern event_loop_t *loop; - extern void io_add(event_loop_t *loop, io_t *io, io_cb_t cb, void *data, int fd, int flags); extern void io_del(event_loop_t *loop, io_t *io); extern void io_set(event_loop_t *loop, io_t *io, int flags); diff --git a/src/meshlink.c b/src/meshlink.c index e6f44c0c..f018bd02 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -43,7 +43,6 @@ const char *meshlink_strerror(meshlink_errno_t errno) { // TODO: hack, remove once all global variables are gone. static void set_mesh(meshlink_handle_t *localmesh) { mesh = localmesh; - loop = &mesh->loop; } static bool ecdsa_keygen(meshlink_handle_t *mesh) {