mirror of
https://git.savannah.gnu.org/git/screen.git
synced 2026-02-10 09:22:04 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user