Define data pointer in Event as void

We don't know format of data we pass around, so we may as well define
pointer as void *. Gets rid of -Wcast-align warning with clang.

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
This commit is contained in:
Amadeusz Sławiński
2019-03-31 00:58:18 +01:00
parent 8f688079be
commit 5bbf4eddfd

View File

@@ -44,7 +44,7 @@ typedef struct Event Event;
struct Event {
Event *next;
void (*handler) (Event *, void *);
char *data;
void *data;
int fd;
EventType type;
int priority;