]> granicus.if.org Git - libevent/commitdiff
Protect EVENT_* macros - () were missing
authorNiels Provos <provos@gmail.com>
Wed, 4 Oct 2006 03:45:10 +0000 (03:45 +0000)
committerNiels Provos <provos@gmail.com>
Wed, 4 Oct 2006 03:45:10 +0000 (03:45 +0000)
svn:r237

event.h

diff --git a/event.h b/event.h
index 304c0a49fac3ae82f50d7f8da339f74558a802cd..bd370f84b34419b87b3ea11730ee6c8947ff7ea0 100644 (file)
--- 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