hi!
I've just discovered a bug in libev-4.00's libev-3 compatibility
inlines (ev.h). ev_loop_count and ev_loop_depth were declared
'void', while they should be 'unsigned int'.
the fix is trivial - see the attached patch.
best regards,
Robin Haberkorn
--
--
------------------ managed broadband access ------------------
Travelping GmbH phone: +49-391-8190990
Roentgenstr. 13 fax: +49-391-819099299
D-39108 Magdeburg email: [email protected]
GERMANY web: http://www.travelping.com
Company Registration: Amtsgericht Stendal Reg No.: HRB 10578
Geschaeftsfuehrer: Holger Winkelmann | VAT ID No.: DE236673780
--------------------------------------------------------------
--- a/ev.h 2010-11-04 15:58:16.963082962 +0100
+++ b/ev.h 2010-11-04 16:01:28.687087392 +0100
@@ -809,8 +809,8 @@
EV_INLINE void ev_default_destroy (void) { ev_loop_destroy (EV_DEFAULT); }
EV_INLINE void ev_default_fork (void) { ev_loop_fork (EV_DEFAULT); }
#if EV_FEATURE_API
- EV_INLINE void ev_loop_count (EV_P) { ev_iteration (EV_A); }
- EV_INLINE void ev_loop_depth (EV_P) { ev_depth (EV_A); }
+ EV_INLINE unsigned int ev_loop_count (EV_P) { return ev_iteration (EV_A); }
+ EV_INLINE unsigned int ev_loop_depth (EV_P) { return ev_depth (EV_A); }
EV_INLINE void ev_loop_verify (EV_P) { ev_verify (EV_A); }
#endif
#endif
_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev