libevent / libevent-book

Nick's libevent manual
https://libevent.org/libevent-book
Other
697 stars 231 forks source link

event_base_get_features() example code of Ref2 #2

Closed yinyin closed 14 years ago

yinyin commented 14 years ago

at line 241 of Ref2, the flag for O1 event notification shall be EV_FEATURE_O1 instead of EV_FEATURE_ET ?

if ((f & EV_FEATURE_ET))
    printf(" Edge-triggered events are supported.");
if ((f & EV_FEATURE_ET)) <- EV_FEATURE_O1 ?
    printf(" O(1) event notification is supported.");
if ((f & EV_FEATURE_FDS))
nmathewson commented 14 years ago

Thanks! Should be fixed in 3d4981017c4