From: Niels Provos Date: Wed, 4 Oct 2006 03:45:10 +0000 (+0000) Subject: Protect EVENT_* macros - () were missing X-Git-Tag: release-2.0.1-alpha~715 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6b933af5c3405e44f8fe134e989193cc369afa9;p=libevent Protect EVENT_* macros - () were missing svn:r237 --- 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