From 284d90a43629147f74b3b621cdced0ddfcbc6095 Mon Sep 17 00:00:00 2001 From: Gudmundur Adalsteinsson Date: Fri, 1 May 2020 22:12:30 +0000 Subject: [PATCH] Problem: unnecessary event struct and UB Solution: simply use zmq_poller_event_t --- src/socket_poller.hpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/socket_poller.hpp b/src/socket_poller.hpp index 5917e018..6f4923e7 100644 --- a/src/socket_poller.hpp +++ b/src/socket_poller.hpp @@ -60,13 +60,7 @@ class socket_poller_t socket_poller_t (); ~socket_poller_t (); - typedef struct event_t - { - socket_base_t *socket; - fd_t fd; - void *user_data; - short events; - } event_t; + typedef zmq_poller_event_t event_t; int add (socket_base_t *socket_, void *user_data_, short events_); int modify (const socket_base_t *socket_, short events_);