From b6b933af5c3405e44f8fe134e989193cc369afa9 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Wed, 4 Oct 2006 03:45:10 +0000 Subject: [PATCH] Protect EVENT_* macros - () were missing svn:r237 --- event.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/event.h b/event.h index 304c0a49..bd370f84 100644 --- a/event.h +++ b/event.h @@ -100,8 +100,8 @@ struct event { int ev_flags; }; -#define EVENT_SIGNAL(ev) (int)ev->ev_fd -#define EVENT_FD(ev) (int)ev->ev_fd +#define EVENT_SIGNAL(ev) (int)(ev)->ev_fd +#define EVENT_FD(ev) (int)(ev)->ev_fd /* * Key-Value pairs. Can be used for HTTP headers but also for