Hey.  I may've been doing something "odd", by trying to figure out
which fd caused a bufferevent error callback.  But even if what I
was doing was kinda wrong (trying to use EVENT_FD(buf->ev_read))
it shouldn't fail in the way that it did.  The definition of many other
symbols in event.h protect their argument in the normal way, these
two just didn't.  Please accept the following change.

103,104c103,104
< #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

  (Apologies for a cut-n-paste that likely messed up tabs.)

  Thanks...

                                        - Chris

_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkey.org/mailman/listinfo/libevent-users

Reply via email to